From: Nicholas Bellinger Date: Thu, 20 Feb 2014 00:53:07 +0000 (-0800) Subject: tcm_qla2xxx: Perform configfs depend/undepend for base_tpg X-Git-Tag: v3.14-rc5~7^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7474f52a82d51da2e6110e91bba8b000cb9cf803;p=pandora-kernel.git 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 Cc: Quinn Tran Cc: Saurav Kashyap Cc: Giridhar Malavali Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed