Skip to content

Commit

Permalink
target: Fix wrong se_tmr being added to drain_tmr_list
Browse files Browse the repository at this point in the history
This patch fixes another bug from LUN_RESET re-org fallout in
core_tmr_drain_tmr_list() that was adding the wrong se_tmr_req
into the local drain_tmr_list to be walked + released.

Signed-off-by: Joern Engel <joern@logfs.org>
Cc: Joern Engel <joern@logfs.org>
Reviewed-by: Roland Dreier <roland@purestorage.com>
Cc: Roland Dreier <roland@purestorage.com>
Cc: stable@kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
  • Loading branch information
Joern Engel authored and Nicholas Bellinger committed Oct 27, 2011
1 parent 80ccbc8 commit 6eb40b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/target/target_core_tmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static void core_tmr_drain_tmr_list(
}
spin_unlock(&cmd->t_state_lock);

list_move_tail(&tmr->tmr_list, &drain_tmr_list);
list_move_tail(&tmr_p->tmr_list, &drain_tmr_list);
}
spin_unlock_irqrestore(&dev->se_tmr_lock, flags);

Expand Down

0 comments on commit 6eb40b2

Please sign in to comment.