On Mon, Mar 03, 2025 at 08:43:11PM +0800, Ming Lei wrote:
Improve ublk_stop_io_daemon() in the following ways:
- don't wait if ->ublksrv_pid becomes -1, which means that the disk
has been stopped
- don't wait if ublk char device doesn't exist any more, so we can
avoid to rely on inoitfy for wait until the char device is closed
And this way may reduce time of delete command a lot.
Looks good,
Reviewed-by: Keith Busch kbusch@kernel.org