mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 07:50:04 +00:00
target/user: Fix time calc in expired cmd processing
Reversed arguments meant that we were doing nothing for cmds whose deadline had passed. Signed-off-by: Andy Grover <agrover@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
1ec218373b
commit
611e2267b6
@ -638,7 +638,7 @@ static int tcmu_check_expired_cmd(int id, void *p, void *data)
|
|||||||
if (test_bit(TCMU_CMD_BIT_EXPIRED, &cmd->flags))
|
if (test_bit(TCMU_CMD_BIT_EXPIRED, &cmd->flags))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (!time_after(cmd->deadline, jiffies))
|
if (!time_after(jiffies, cmd->deadline))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
set_bit(TCMU_CMD_BIT_EXPIRED, &cmd->flags);
|
set_bit(TCMU_CMD_BIT_EXPIRED, &cmd->flags);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user