The patch titled nbd: Abort request on data reception failure has been added to the -mm tree. Its filename is nbd-abort-request-on-data-reception-failure.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: nbd: Abort request on data reception failure From: Michal Feix <michal.feix@xxxxxxxxxxxxxxx> 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@xxxxxxx> Acked-by: Paul Clements <paul.clements@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/block/nbd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN drivers/block/nbd.c~nbd-abort-request-on-data-reception-failure drivers/block/nbd.c --- a/drivers/block/nbd.c~nbd-abort-request-on-data-reception-failure +++ a/drivers/block/nbd.c @@ -341,7 +341,8 @@ static struct request *nbd_read_stat(str printk(KERN_ERR "%s: Receive data failed (result %d)\n", lo->disk->disk_name, result); - goto harderror; + req->errors++; + return req; } dprintk(DBG_RX, "%s: request %p: got %d bytes data\n", lo->disk->disk_name, req, bvec->bv_len); _ Patches currently in -mm which might be from michal.feix@xxxxxxxxxxxxxxx are nbd-abort-request-on-data-reception-failure.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html