ublk_drv: support to complete io command via task_work_add
[linux-block.git] / include / uapi / linux / ublk_cmd.h
index 4f0c16ec875e4f5239286844512c98ed02d70817..a3f5e7c21807cc20c4b3fa97f78e0f2eae71cf21 100644 (file)
  */
 #define UBLK_F_SUPPORT_ZERO_COPY       (1UL << 0)
 
+/*
+ * Force to complete io cmd via io_uring_cmd_complete_in_task so that
+ * performance comparison is done easily with using task_work_add
+ */
+#define UBLK_F_URING_CMD_COMP_IN_TASK  (1UL << 1)
+
 /* device state */
 #define UBLK_S_DEV_DEAD        0
 #define UBLK_S_DEV_LIVE        1