Re: [PATCH-v3 2/5] target: Fix LUN_RESET active TMR descriptor handling

2016-02-02 Thread Christoph Hellwig
> + if (WARN_ON_ONCE(!sess)) > + continue; > + > + spin_lock(&sess->sess_cmd_lock); > spin_lock(&cmd->t_state_lock); > if (!(cmd->transport_state & CMD_T_ACTIVE)) { > spin_unlock(&cmd->t_state_lock); > +

[PATCH-v3 2/5] target: Fix LUN_RESET active TMR descriptor handling

2016-01-29 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch fixes a NULL pointer se_cmd->cmd_kref < 0 refcount bug during TMR LUN_RESET with active TMRs, triggered during se_cmd + se_tmr_req descriptor shutdown + release via core_tmr_drain_tmr_list(). To address this bug, go ahead and obtain a local kref_get_unless_zer