aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorPaul Clements <paul.clements@steeleye.com>2012-09-17 14:09:02 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-09-17 15:00:37 -0700
commitfded4e090c60100d709318896c79816d68d5b47d (patch)
tree889cd9547a487296b5354b1956e174b4750a2737 /mm/slab.c
parentMAINTAINERS: fix TXT maintainer list and source repo path (diff)
downloadlinux-dev-fded4e090c60100d709318896c79816d68d5b47d.tar.xz
linux-dev-fded4e090c60100d709318896c79816d68d5b47d.zip
nbd: clear waiting_queue on shutdown
Fix a serious but uncommon bug in nbd which occurs when there is heavy I/O going to the nbd device while, at the same time, a failure (server, network) or manual disconnect of the nbd connection occurs. There is a small window between the time that the nbd_thread is stopped and the socket is shutdown where requests can continue to be queued to nbd's internal waiting_queue. When this happens, those requests are never completed or freed. The fix is to clear the waiting_queue on shutdown of the nbd device, in the same way that the nbd request queue (queue_head) is already being cleared. Signed-off-by: Paul Clements <paul.clements@steeleye.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions