nbd: Cleanup reset of nbd and bdev after a disconnect
authorMarkus Pargmann <mpa@pengutronix.de>
Thu, 29 Oct 2015 11:04:51 +0000 (12:04 +0100)
committerMarkus Pargmann <mpa@pengutronix.de>
Fri, 5 Feb 2016 07:52:32 +0000 (08:52 +0100)
commit0e4f0f6f63d3416a9e529d99febfe98545427b81
tree64047990c1fb95e3c492e3afdb8443fb50a4d31d
parent1f7b5cf1be4351e60cf8ae7aab976503dd73c5f8
nbd: Cleanup reset of nbd and bdev after a disconnect

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 <mpa@pengutronix.de>
drivers/block/nbd.c