summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-lpc32xx.c
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2014-02-20 02:50:22 +0100
committerNicholas Bellinger <nab@linux-iscsi.org>2014-02-20 22:01:17 +0100
commit3c231bdae1e7c8d366eeb133980b81dff2e1e809 (patch)
tree4a029b1b2435b516f843f952bb44fce900c2e2e2 /drivers/pwm/pwm-lpc32xx.c
parentqla2xxx: Fix qlt_lport_register base_vha callback race (diff)
downloadlinux-3c231bdae1e7c8d366eeb133980b81dff2e1e809.tar.xz
linux-3c231bdae1e7c8d366eeb133980b81dff2e1e809.zip
qla2xxx: Check + fail when npiv_vports_inuse exists in shutdown
This patch adds an check to qlt_stop_phase1() to avoid shutdown when the base_vha contains a non-zero fc_host->npiv_vports_inuse count. This includes holding qla_tgt_mutex in qlt_stop_phase1() between the fc_host->npiv_vports_inuse check + setting of tgt->tgt_stop to avoid a possible race between qlt_lport_register() -> tcm_qla2xxx -> tcm_qla2xxx_lport_register_npiv_cb() calling fc_vport_create(). 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/pwm/pwm-lpc32xx.c')
0 files changed, 0 insertions, 0 deletions