Files
linux-stable-mirror/include/uapi/linux
Yoav Cohen 93ada1b3da ublk: add UBLK_CMD_TRY_STOP_DEV command
Add a best-effort stop command, UBLK_CMD_TRY_STOP_DEV, which only stops a
ublk device when it has no active openers.

Unlike UBLK_CMD_STOP_DEV, this command does not disrupt existing users.
New opens are blocked only after disk_openers has reached zero; if the
device is busy, the command returns -EBUSY and leaves it running.

The ub->block_open flag is used only to close a race with an in-progress
open and does not otherwise change open behavior.

Advertise support via the UBLK_F_SAFE_STOP_DEV feature flag.

Signed-off-by: Yoav Cohen <yoav@nvidia.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2026-01-12 15:07:31 -07:00
..
2025-11-24 21:56:17 +01:00
2025-10-28 22:59:19 +01:00
2025-11-25 19:20:42 -08:00
2025-11-05 08:07:21 -07:00
2025-09-05 09:11:28 +02:00
2025-05-03 12:02:09 +02:00
2025-11-24 17:52:11 +01:00
2025-11-24 17:52:11 +01:00
2025-11-29 21:39:58 +09:00
2025-12-18 21:34:42 -08:00
2025-09-15 14:32:54 +02:00
2025-04-17 11:09:10 +02:00
2025-07-08 12:39:24 +02:00
2025-12-05 23:16:26 +00:00
2025-11-03 17:41:18 +01:00
2025-10-30 14:25:14 +01:00
2025-11-25 19:20:42 -08:00
2025-11-04 08:30:09 +01:00
2025-07-14 18:41:42 -07:00
2025-06-19 14:28:22 +02:00
2025-05-21 13:41:03 +02:00
2025-04-17 12:30:02 +02:00
2025-09-21 17:44:20 -04:00
2025-09-22 09:29:28 +01:00
2025-11-30 18:02:43 -05:00
2025-05-27 10:27:54 -04:00
2025-09-22 09:29:29 +01:00