blk-mq: Add locking annotations to hctx_lock() and hctx_unlock()
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 10 Jan 2018 19:34:27 +0000 (11:34 -0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Jan 2018 19:36:02 +0000 (12:36 -0700)
commitb7435db8b8d11df94453708295c2ea5b09caff5f
treed86bd3372a7b0b57acaf34da373a29d8ac71f642
parent0478fe68685a428c71decc19abecd265a6d658dd
blk-mq: Add locking annotations to hctx_lock() and hctx_unlock()

This patch avoids that sparse reports the following:

block/blk-mq.c:637:33: warning: context imbalance in 'hctx_unlock' - unexpected unlock
block/blk-mq.c:642:9: warning: context imbalance in 'hctx_lock' - wrong count at exit

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c