nbd: Remove 'harderror' and propagate error properly
authorMarkus Pargmann <mpa@pengutronix.de>
Mon, 17 Aug 2015 06:20:03 +0000 (08:20 +0200)
committerJens Axboe <axboe@fb.com>
Mon, 17 Aug 2015 14:22:52 +0000 (08:22 -0600)
commit193918307f4e66eb6a811f30795991c6f7680b34
tree8b770dd24764fcb54f9cf0a7eea1d7bad0d63b83
parent260bbce403e2ac601b422fd926f48b9924051f92
nbd: Remove 'harderror' and propagate error properly

Instead of a variable 'harderror' we can simply try to correctly
propagate errors to the userspace.

This patch removes the harderror variable and passes errors through
error pointers and nbd_do_it back to the userspace.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nbd.c