[PATCH 4/5] nbd: Cleanup reset of nbd and bdev after a disconnect

2016-01-02 Thread Markus Pargmann
Group all variables that are reset after a disconnect into reset functions. This patch adds two of these functions, nbd_reset() and nbd_bdev_reset(). Signed-off-by: Markus Pargmann --- drivers/block/nbd.c | 40 +--- 1 file changed, 29 insertions(+), 11

[PATCH 4/5] nbd: Cleanup reset of nbd and bdev after a disconnect

2016-01-02 Thread Markus Pargmann
Group all variables that are reset after a disconnect into reset functions. This patch adds two of these functions, nbd_reset() and nbd_bdev_reset(). Signed-off-by: Markus Pargmann --- drivers/block/nbd.c | 40 +--- 1 file changed, 29