diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-09-26 04:54:38 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-11-14 17:57:03 +0100 |
commit | dbb3ab03563cbf0880b1801a238b3e3964e364a1 (patch) | |
tree | 5c5b91970f17aebc89f259b1c9ecf76158d256c6 /block | |
parent | blk-wbt: use BLK_STAT_{READ,WRITE} instead of 0/1 (diff) | |
download | linux-dbb3ab03563cbf0880b1801a238b3e3964e364a1.tar.xz linux-dbb3ab03563cbf0880b1801a238b3e3964e364a1.zip |
bsg: Add sparse annotations to bsg_request_fn()
Avoid that sparse complains about unbalanced lock actions.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/bsg-lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/bsg-lib.c b/block/bsg-lib.c index 650f427d915b..b2a61e3ecb14 100644 --- a/block/bsg-lib.c +++ b/block/bsg-lib.c @@ -161,6 +161,8 @@ failjob_rls_job: * Drivers/subsys should pass this to the queue init function. */ void bsg_request_fn(struct request_queue *q) + __releases(q->queue_lock) + __acquires(q->queue_lock) { struct device *dev = q->queuedata; struct request *req; |