[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210314091441.GA3773360@infradead.org>
Date: Sun, 14 Mar 2021 09:14:41 +0000
From: Christoph Hellwig <hch@...radead.org>
To: Mike Snitzer <snitzer@...hat.com>
Cc: Sergei Shtepa <sergei.shtepa@...am.com>,
Christoph Hellwig <hch@...radead.org>,
Alasdair Kergon <agk@...hat.com>,
Hannes Reinecke <hare@...e.de>, Jens Axboe <axboe@...nel.dk>,
dm-devel@...hat.com, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-api@...r.kernel.org,
pavel.tide@...am.com
Subject: Re: [PATCH v7 1/3] block: add blk_mq_is_queue_frozen()
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.
Powered by blists - more mailing lists