From: Michal Feix Date: Sun, 30 Jul 2006 10:03:32 +0000 (-0700) Subject: [PATCH] nbd: Abort request on data reception failure X-Git-Tag: v2.6.18-rc4~126 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0df33bcab4b687f0f18b9ebd69d374642e46a0e;p=pandora-kernel.git [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 Acked-by: Paul Clements Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed