You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
target: lock => unlock typo in transport_lun_wait_for_tasks
target_stop_cmd() returns with the lock held and IRQs disabled. The
intent was to unlock here. This bug was originally added with:
commit cf572a9627
Author: Christoph Hellwig <hch@infradead.org>
Date: Tue Apr 24 00:25:05 2012 -0400
target: move the state and execute lists to the command
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
committed by
Nicholas Bellinger
parent
7b4deef5d9
commit
2301917044
@@ -3768,7 +3768,7 @@ static int transport_lun_wait_for_tasks(struct se_cmd *cmd, struct se_lun *lun)
|
|||||||
(cmd->transport_state & CMD_T_SENT)) {
|
(cmd->transport_state & CMD_T_SENT)) {
|
||||||
if (!target_stop_cmd(cmd, &flags))
|
if (!target_stop_cmd(cmd, &flags))
|
||||||
ret++;
|
ret++;
|
||||||
spin_lock_irqsave(&cmd->t_state_lock, flags);
|
spin_unlock_irqrestore(&cmd->t_state_lock, flags);
|
||||||
} else {
|
} else {
|
||||||
spin_unlock_irqrestore(&cmd->t_state_lock,
|
spin_unlock_irqrestore(&cmd->t_state_lock,
|
||||||
flags);
|
flags);
|
||||||
|
|||||||
Reference in New Issue
Block a user