tcmu: Fix dev_config_store
authorBryant G. Ly <bryantly@linux.vnet.ibm.com>
Fri, 7 Jul 2017 19:20:00 +0000 (14:20 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 10 Jul 2017 03:57:56 +0000 (20:57 -0700)
commitde8c5221aa003935d6d31becf5850b247dff14a1
tree0bf4a03d5e75e98278a2431097c79d6f932ba77c
parent016a5fec19e191ed1d45f75d8bfbefdec3f2dada
tcmu: Fix dev_config_store

Currently when there is a reconfig, the uio_info->name
does not get updated to reflect the change in the dev_config
name change.

On restart tcmu-runner there will be a mismatch between
the dev_config string in uio and the tcmu structure that contains
the string. When this occurs it'll reload the one in uio
and you lose the reconfigured device path.

v2: Created a helper function for the updating of uio_info

Signed-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_user.c