mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
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:
parent
85441e6b8c
commit
b3af66e243
2 changed files with 200 additions and 20 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue