]> git.karo-electronics.de Git - linux-beck.git/commitdiff
bsg: Add sparse annotations to bsg_request_fn()
authorBart Van Assche <bart.vanassche@sandisk.com>
Mon, 26 Sep 2016 02:54:38 +0000 (19:54 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 14 Nov 2016 16:57:03 +0000 (09:57 -0700)
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>
block/bsg-lib.c

index 650f427d915be22bd1a6bc88f21083de8c924a15..b2a61e3ecb1472ce6287f810979e216530d7920e 100644 (file)
@@ -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;