diff options
author | ZiyangZhang <ZiyangZhang@linux.alibaba.com> | 2022-09-23 18:39:17 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-09-24 04:09:56 +0300 |
commit | a0d41dc1137470fd4c5c2ef8fdc244d7565e69e6 (patch) | |
tree | b03baa74b4950fee817cb70f6898db5eab971a75 /include/uapi/linux/ublk_cmd.h | |
parent | bbae8d1f526b56d04d51a5fc300d9de702e264dd (diff) | |
download | linux-a0d41dc1137470fd4c5c2ef8fdc244d7565e69e6.tar.xz |
ublk_drv: support UBLK_F_USER_RECOVERY_REISSUE
UBLK_F_USER_RECOVERY_REISSUE implies that:
With a dying ubq_daemon, ublk_drv let monitor_work requeues rq issued to
userspace(ublksrv) before the ubq_daemon is dying.
UBLK_F_USER_RECOVERY_REISSUE is designed for backends which:
(1) tolerate double-write since ublk_drv may issue the same rq
twice.
(2) does not let frontend users get I/O error, such as read-only FS
and VM backend.
Signed-off-by: ZiyangZhang <ZiyangZhang@linux.alibaba.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220923153919.44078-6-ZiyangZhang@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux/ublk_cmd.h')
-rw-r--r-- | include/uapi/linux/ublk_cmd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/ublk_cmd.h b/include/uapi/linux/ublk_cmd.h index 340ff14bde49..332370628757 100644 --- a/include/uapi/linux/ublk_cmd.h +++ b/include/uapi/linux/ublk_cmd.h @@ -76,6 +76,8 @@ #define UBLK_F_USER_RECOVERY (1UL << 3) +#define UBLK_F_USER_RECOVERY_REISSUE (1UL << 4) + /* device state */ #define UBLK_S_DEV_DEAD 0 #define UBLK_S_DEV_LIVE 1 |