diff options
author | Luis Chamberlain <mcgrof@kernel.org> | 2020-06-19 22:47:24 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-06-24 17:15:58 +0200 |
commit | 763b58923aeb0a06c5a5f7e5fbb4c654c644d91d (patch) | |
tree | 2e1715d95ba48ce240378169c2079917a2ce1dcd /block/blk-core.c | |
parent | block: add docs for gendisk / request_queue refcount helpers (diff) | |
download | linux-763b58923aeb0a06c5a5f7e5fbb4c654c644d91d.tar.xz linux-763b58923aeb0a06c5a5f7e5fbb4c654c644d91d.zip |
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>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 13777c0c97f0..f68398cb2ef6 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -610,6 +610,8 @@ EXPORT_SYMBOL(blk_alloc_queue); * @q: the request_queue structure to increment the refcount for * * Increment the refcount of the request_queue kobject. + * + * Context: Any context. */ bool blk_get_queue(struct request_queue *q) { |