[<prev] [next>] [day] [month] [year] [list]
Message-ID: <512CDB4F.9050902@inktank.com>
Date: Tue, 26 Feb 2013 09:57:03 -0600
From: Alex Elder <elder@...tank.com>
To: akpm@...ux-foundation.org, paul.clements@...sios.com,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] 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 <elder@...tank.com>
---
drivers/block/nbd.c | 1 +
1 file changed, 1 insertion(+)
Index: b/drivers/block/nbd.c
===================================================================
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -551,6 +551,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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists