scsi: target: Perform ALUA group changes in one step
authorMike Christie <michael.christie@oracle.com>
Thu, 30 Sep 2021 02:04:22 +0000 (21:04 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Oct 2021 02:38:36 +0000 (22:38 -0400)
commitf9793d649c29bad86651620ec49888ee9743cbb6
tree8e7fb9e52d3a43dddc1424ffc5d0d6342d69b5b6
parent7324f47d4293ff50f489010735a4057defb1a5d6
scsi: target: Perform ALUA group changes in one step

When userspace changes the LUN's ALUA group, it will set the LUN's group to
NULL then to the new group. Before the new group is set,
target_alua_state_check() will return 0 and allow the I/O to execute. This
has us skip the NULL stage, and just swap in the new group.

Link: https://lore.kernel.org/r/20210930020422.92578-6-michael.christie@oracle.com
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_alua.c