diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-09-25 19:54:38 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-11-14 09:57:03 -0700 |
commit | dbb3ab03563cbf0880b1801a238b3e3964e364a1 (patch) | |
tree | 5c5b91970f17aebc89f259b1c9ecf76158d256c6 /block | |
parent | 382cf633edcb0371a6dd506653014897c4ac2a4d (diff) |
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; |