# Re: \[PATCH v7 1/3\] block: add blk\_mq\_is\_queue\_frozen()

- From: Christoph Hellwig \<hch@infradead.org\>
- Date: 2021-03-14 09:16:42 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/03/6299601
- Thread: https://ratatoskr.run/linux-block/2021/03/6298513/t.md

```text
On Fri, Mar 12, 2021 at 02:06:41PM -0500, Mike Snitzer wrote:
> This is returning a frozen state that is immediately stale.  I don't
> think any code calling this is providing the guarantees you think it
> does due to the racey nature of this state once the mutex is dropped.

The code only uses it for asserts in the form of WARN_ONs.
```
