diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-02-20 01:53:07 +0100 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-02-20 22:01:17 +0100 |
commit | 7474f52a82d51da2e6110e91bba8b000cb9cf803 (patch) | |
tree | 7ea5e1f43284aa10debb071398abd4c10178a956 /drivers/scsi/raid_class.c | |
parent | tcm_qla2xxx: Add NPIV specific enable/disable attribute logic (diff) | |
download | linux-7474f52a82d51da2e6110e91bba8b000cb9cf803.tar.xz linux-7474f52a82d51da2e6110e91bba8b000cb9cf803.zip |
tcm_qla2xxx: Perform configfs depend/undepend for base_tpg
This patch performs configfs_depend_item() during TPG enable for
base_tpg (eg: non-NPIV) ports, and configfs_undepend_item() during
TPG disable for base_tpg.
This is done to ensure that any attempt to configfs rmdir a base_tpg
with active NPIV ports will fail with -EBUSY, until all associated
NPIV ports have been explicitly shutdown and base_tpg disabled.
Note that the actual configfs_[un]depend_item() is done from seperate
process context, as these are not intended to be called directly
from configfs callbacks.
Cc: Sawan Chandak <sawan.chandak@qlogic.com>
Cc: Quinn Tran <quinn.tran@qlogic.com>
Cc: Saurav Kashyap <saurav.kashyap@qlogic.com>
Cc: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/scsi/raid_class.c')
0 files changed, 0 insertions, 0 deletions