diff options
author | Andy Grover <agrover@redhat.com> | 2015-11-13 19:42:19 +0100 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-11-29 04:32:33 +0100 |
commit | 611e2267b68fc061aea86345b3a8b87151395187 (patch) | |
tree | 934c8c872ce83ef734ba9e5248fa4a871a532ebf | |
parent | Linux 4.4-rc2 (diff) | |
download | linux-611e2267b68fc061aea86345b3a8b87151395187.tar.xz linux-611e2267b68fc061aea86345b3a8b87151395187.zip |
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>
-rw-r--r-- | drivers/target/target_core_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index 937cebf76633..41f9eb07817e 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -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)) return 0; - if (!time_after(cmd->deadline, jiffies)) + if (!time_after(jiffies, cmd->deadline)) return 0; set_bit(TCMU_CMD_BIT_EXPIRED, &cmd->flags); |