Skip to content
Commit 0c1c9a27 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Christian Brauner
Browse files

nbd: call blk_mark_disk_dead in nbd_clear_sock_ioctl



nbd_clear_sock_ioctl kills the socket and with that the block
device.  Instead of just invalidating file system buffers,
mark the device as dead, which will also invalidate the buffers
as part of the proper shutdown sequence.  This also includes
invalidating partitions if there are any.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
Message-Id: <20230811100828.1897174-8-hch@lst.de>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 8ffa54e3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment