ublk_drv: support to complete io command via task_work_add
[platform/kernel/linux-starfive.git] / include / uapi / linux / ublk_cmd.h
index 4f0c16e..a3f5e7c 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