]> err.no Git - linux-2.6/commit
[PATCH] nbd: Abort request on data reception failure
authorMichal Feix <michal.feix@firma.seznam.cz>
Sun, 30 Jul 2006 10:03:32 +0000 (03:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Jul 2006 20:28:39 +0000 (13:28 -0700)
commitf0df33bcab4b687f0f18b9ebd69d374642e46a0e
tree808ecf0e290eb67063fd1d42af53ed611b486590
parente4b57e0842621f597d744b193ea325d62724596b
[PATCH] nbd: Abort request on data reception failure

When reading from nbd device, we need to receive all the data after
receiving reply packet from the server - otherwise such request will never
be ended.

If socket is closed right after accepting reply control packet and in the
middle of waiting for read data, nbd_read_stat() returns NULL and
nbd_end_request() is not called.

This patch fixes it.

Signed-off-by: Michal Feix <michal@feix.cz>
Acked-by: Paul Clements <paul.clements@steeleye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/nbd.c