OSDN Git Service

block: mark blk_put_queue as potentially blocking
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Nov 2022 04:26:37 +0000 (05:26 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Nov 2022 18:09:00 +0000 (11:09 -0700)
commit63f93fd6fa5717769a78d6d7bea6f7f9a1ccca8e
treeb8a478855d3c4575d481b9476eb822cdfc150519
parent2bd85221a625b316114bafaab527770b607095d3
block: mark blk_put_queue as potentially blocking

We can't just say that the last reference release may block, as any
reference dropped could be the last one.  So move the might_sleep() from
blk_free_queue to blk_put_queue and update the documentation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20221114042637.1009333-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c