[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <44BA3C58.5080708@firma.seznam.cz>
Date: Sun, 16 Jul 2006 15:17:12 +0200
From: Michal Feix <michal.feix@...ma.seznam.cz>
To: Paul.Clements@...eleye.com
CC: linux-kernel@...r.kernel.org
Subject: [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@...x.cz>
---
View attachment "nbd.c.always-end-request.diff" of type "text/plain" (570 bytes)
Powered by blists - more mailing lists