public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nbd: fix sparse warning
       [not found] <512C335B.7010609@inktank.com>
@ 2013-02-26 15:57 ` Alex Elder
  0 siblings, 0 replies; only message in thread
From: Alex Elder @ 2013-02-26 15:57 UTC (permalink / raw)
  To: akpm, paul.clements, LKML

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@inktank.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;
 	



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-26 15:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <512C335B.7010609@inktank.com>
2013-02-26 15:57 ` [PATCH] nbd: fix sparse warning Alex Elder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox