From dbb3ab03563cbf0880b1801a238b3e3964e364a1 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 25 Sep 2016 19:54:38 -0700 Subject: bsg: Add sparse annotations to bsg_request_fn() Avoid that sparse complains about unbalanced lock actions. Signed-off-by: Bart Van Assche Signed-off-by: Jens Axboe --- block/bsg-lib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'block') diff --git a/block/bsg-lib.c b/block/bsg-lib.c index 650f427d915be..b2a61e3ecb147 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; -- cgit v1.2.3