From: Nicholas Bellinger Date: Thu, 20 Feb 2014 01:51:25 +0000 (-0800) Subject: qla2xxx: Fix qlt_lport_register base_vha callback race X-Git-Tag: v3.14-rc5~7^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddb95145a38eb37b236d4e00f43a75d067922dda;p=pandora-kernel.git qla2xxx: Fix qlt_lport_register base_vha callback race This patch closes a race between qlt_lport_register() and tcm_qla2xxx callback logic by holding qla_tgt_mutex before making the callback. In order for this to work, the qlt_add_target() and qlt_remove_target() code has been changed to avoid the accessing qla_tgt_mutex + list_[add,del] for NPIV enabled ports. This bug introduced in v3.14-rc1 code with commit 49a47f2. Cc: Sawan Chandak Cc: Quinn Tran Cc: Saurav Kashyap Cc: Giridhar Malavali Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed