From dbb3ab03563cbf0880b1801a238b3e3964e364a1 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 25 Sep 2016 19:54:38 -0700 Subject: [PATCH] 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(+) 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 @@ static int bsg_create_job(struct device *dev, struct request *req) * 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; -- GitLab