]> git.baikalelectronics.ru Git - kernel.git/commit
block: clarify context for refcount increment helpers
authorLuis Chamberlain <mcgrof@kernel.org>
Fri, 19 Jun 2020 20:47:24 +0000 (20:47 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 Jun 2020 15:15:58 +0000 (09:15 -0600)
commit027cafd4db71e79b65a8e271427c951bfe3c27a7
tree2e1715d95ba48ce240378169c2079917a2ce1dcd
parent04fa0688495e4b8dfb011a2b9c00b19ca13035c7
block: clarify context for refcount increment helpers

Let us clarify the context under which the helpers to increment the
refcount for the gendisk and request_queue can be called under. We
make this explicit on the places where we may sleep with might_sleep().

We don't address the decrement context yet, as that needs some extra
work and fixes, but will be addressed in the next patch.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/genhd.c