From: Alex Elder Date: Thu, 28 Feb 2013 01:05:28 +0000 (-0800) Subject: nbd: fix sparse warning X-Git-Tag: upstream/snapshot3+hdmi~5615^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=398eb08555b24049e0362fee92920982b283fd96;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git nbd: fix sparse warning I just fixed this in "drivers/block/rbd.c" and I noticed that "drivers/block/nbd.c" has the same problem. Fix a warning issued by sparse by adding some lockdep annotations to indicate the queue lock gets dropped (because it's held when do_nbd_request() is called) and re-acquired within the function. Signed-off-by: Alex Elder Cc: Paul Clements Cc: Paul Clements Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 52003d7..7fecc78 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -564,6 +564,7 @@ static int nbd_thread(void *data) */ static void do_nbd_request(struct request_queue *q) + __releases(q->queue_lock) __acquires(q->queue_lock) { struct request *req;