tcmu: perfom device add, del and reconfig synchronously
This makes the device add, del reconfig operations sync. It fixes the issue where for add and reconfig, we do not know if userspace successfully completely the operation, so we leave invalid kernel structs or report incorrect status for the config/reconfig operations. Signed-off-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:

committed by
Nicholas Bellinger

parent
85441e6b8c
commit
b3af66e243
@@ -131,6 +131,10 @@ enum tcmu_genl_cmd {
|
||||
TCMU_CMD_ADDED_DEVICE,
|
||||
TCMU_CMD_REMOVED_DEVICE,
|
||||
TCMU_CMD_RECONFIG_DEVICE,
|
||||
TCMU_CMD_ADDED_DEVICE_DONE,
|
||||
TCMU_CMD_REMOVED_DEVICE_DONE,
|
||||
TCMU_CMD_RECONFIG_DEVICE_DONE,
|
||||
TCMU_CMD_SET_FEATURES,
|
||||
__TCMU_CMD_MAX,
|
||||
};
|
||||
#define TCMU_CMD_MAX (__TCMU_CMD_MAX - 1)
|
||||
@@ -143,6 +147,9 @@ enum tcmu_genl_attr {
|
||||
TCMU_ATTR_DEV_CFG,
|
||||
TCMU_ATTR_DEV_SIZE,
|
||||
TCMU_ATTR_WRITECACHE,
|
||||
TCMU_ATTR_CMD_STATUS,
|
||||
TCMU_ATTR_DEVICE_ID,
|
||||
TCMU_ATTR_SUPP_KERN_CMD_REPLY,
|
||||
__TCMU_ATTR_MAX,
|
||||
};
|
||||
#define TCMU_ATTR_MAX (__TCMU_ATTR_MAX - 1)
|
||||
|
Reference in New Issue
Block a user