aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorMike Christie <mchristi@redhat.com>2017-06-12 02:34:28 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2017-07-07 02:11:36 -0400
commit2d76443e02f260d7a5bd0ede1851ae5534f0c68d (patch)
tree537aa19cfd1d41b92a2fbf9e354c1b3258208262 /include/uapi/linux
parent5f572526a18418258bfa137e3353656c25439500 (diff)
tcmu: reconfigure netlink attr changes
1. TCMU_ATTR_TYPE is too generic when it describes only the reconfiguration type, so rename to TCMU_ATTR_RECONFIG_TYPE. 2. Only return the reconfig type when it is a TCMU_CMD_RECONFIG_DEVICE command. 3. CONFIG_* type is not needed. We can pass the value along with an ATTR to userspace, so it does not need to read sysfs/configfs. 4. Fix leak in tcmu_dev_path_store and rename to dev_config to reflect it is more than just a path that can be changed. 6. Don't update kernel struct value if netlink sending fails. Signed-off-by: Mike Christie <mchristi@redhat.com> Reviewed-by: "Bryant G. Ly" <bryantly@linux.vnet.ibm.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/target_core_user.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/uapi/linux/target_core_user.h b/include/uapi/linux/target_core_user.h
index 5b00e3500005..4bfc9a1b635c 100644
--- a/include/uapi/linux/target_core_user.h
+++ b/include/uapi/linux/target_core_user.h
@@ -139,16 +139,12 @@ enum tcmu_genl_attr {
139 TCMU_ATTR_UNSPEC, 139 TCMU_ATTR_UNSPEC,
140 TCMU_ATTR_DEVICE, 140 TCMU_ATTR_DEVICE,
141 TCMU_ATTR_MINOR, 141 TCMU_ATTR_MINOR,
142 TCMU_ATTR_TYPE, 142 TCMU_ATTR_PAD,
143 TCMU_ATTR_DEV_CFG,
144 TCMU_ATTR_DEV_SIZE,
145 TCMU_ATTR_WRITECACHE,
143 __TCMU_ATTR_MAX, 146 __TCMU_ATTR_MAX,
144}; 147};
145#define TCMU_ATTR_MAX (__TCMU_ATTR_MAX - 1) 148#define TCMU_ATTR_MAX (__TCMU_ATTR_MAX - 1)
146 149
147enum tcmu_reconfig_types {
148 NO_RECONFIG,
149 CONFIG_PATH,
150 CONFIG_SIZE,
151 CONFIG_WRITECACHE,
152};
153
154#endif 150#endif