]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nbd: fix sparse warning
authorAlex Elder <elder@inktank.com>
Thu, 28 Feb 2013 01:05:28 +0000 (17:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Feb 2013 03:10:22 +0000 (19:10 -0800)
commit398eb08555b24049e0362fee92920982b283fd96
tree8854f4c74114fd24ae3ea02303521fd02d6ebaf2
parent5e4b269bcd178ac9b066a69f17c253d2f3f6388a
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@inktank.com>
Cc: Paul Clements <paul.clements@steeleye.com>
Cc: Paul Clements <paul.clements@us.sios.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/nbd.c