aboutsummaryrefslogtreecommitdiff
path: root/drivers/block/mtip32xx
diff options
context:
space:
mode:
authorGravatar Kevin Vigor <kvigor@fb.com> 2018-05-30 10:45:11 -0600
committerGravatar Jens Axboe <axboe@kernel.dk> 2018-05-30 11:30:42 -0600
commit5e3c3a7ecefefaebc7c9a626fe4522cb85bbdaad (patch)
tree03f7f01f6c8164298296f87344a71dd754fab70b /drivers/block/mtip32xx
parentblk-throttle: fix potential NULL pointer dereference in throtl_select_dispatch (diff)
downloadlinux-5e3c3a7ecefefaebc7c9a626fe4522cb85bbdaad.tar.gz
linux-5e3c3a7ecefefaebc7c9a626fe4522cb85bbdaad.tar.bz2
linux-5e3c3a7ecefefaebc7c9a626fe4522cb85bbdaad.zip
nbd: clear DISCONNECT_REQUESTED flag once disconnection occurs.
When a userspace client requests a NBD device be disconnected, the DISCONNECT_REQUESTED flag is set. While this flag is set, the driver will not inform userspace when a connection is closed. Unfortunately the flag was never cleared, so once a disconnect was requested the driver would thereafter never tell userspace about a closed connection. Thus when connections failed due to timeout, no attempt to reconnect was made and eventually the device would fail. Fix by clearing the DISCONNECT_REQUESTED flag (and setting the DISCONNECTED flag) once all connections are closed. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Kevin Vigor <kvigor@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/mtip32xx')
0 files changed, 0 insertions, 0 deletions