Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6eb40b2a authored by Joern Engel's avatar Joern Engel Committed by Nicholas Bellinger
Browse files

target: Fix wrong se_tmr being added to drain_tmr_list



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: default avatarJoern Engel <joern@logfs.org>
Cc: Joern Engel <joern@logfs.org>
Reviewed-by: default avatarRoland Dreier <roland@purestorage.com>
Cc: Roland Dreier <roland@purestorage.com>
Cc: stable@kernel.org
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 80ccbc8e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -147,7 +147,7 @@ static void core_tmr_drain_tmr_list(
		}
		}
		spin_unlock(&cmd->t_state_lock);
		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);
	spin_unlock_irqrestore(&dev->se_tmr_lock, flags);