]> www.infradead.org Git - users/hch/block.git/commit
block: mark blk_put_queue as potentially blocking block-queue-kobj
authorChristoph Hellwig <hch@lst.de>
Sat, 5 Nov 2022 08:07:36 +0000 (09:07 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 10 Nov 2022 11:02:47 +0000 (12:02 +0100)
commit67eca5176094d001b607850897072b6a3a3d8596
tree1e367d31816e6789be9ed1f28ffbffa842383120
parent194a86cd3a60e3120b0b36ba7f3a60b7d5c52080
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>
block/blk-core.c