Re: nbd: clean up error handling
From: Pavel Machek
Date: Sun Dec 28 2008 - 03:03:46 EST
On Thu 2008-12-18 14:15:39, Paul Clements wrote:
> Hi Pavel,
>
> hanks for the patch...
>
> Pavel Machek wrote:
>> Uses existing error_out: label instead of hardcoding error action.
>>
>> Signed-off-by: Pavel Machek <pavel@xxxxxxx>
>
>> @@ -475,8 +473,7 @@ static void nbd_handle_req(struct nbd_de
>> if (nbd_send_req(lo, req) != 0) {
>> printk(KERN_ERR "%s: Request send failed\n",
>> lo->disk->disk_name);
>> - req->errors++;
>> - nbd_end_request(req);
>> + goto error_out;
>
> This one is not correct. We don't return immediately here.
Sorry about that. Will do next series shortly...
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/