diff options
Diffstat (limited to 'drivers/scsi/qlogicpti.c')
-rw-r--r-- | drivers/scsi/qlogicpti.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index 1fd5fc6d0fe3..c7e78dcf09df 100644 --- a/drivers/scsi/qlogicpti.c +++ b/drivers/scsi/qlogicpti.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/spinlock.h> | 24 | #include <linux/spinlock.h> |
25 | #include <linux/interrupt.h> | 25 | #include <linux/interrupt.h> |
26 | #include <linux/module.h> | 26 | #include <linux/module.h> |
27 | #include <linux/jiffies.h> | ||
27 | 28 | ||
28 | #include <asm/byteorder.h> | 29 | #include <asm/byteorder.h> |
29 | 30 | ||
@@ -1017,7 +1018,7 @@ static inline void cmd_frob(struct Command_Entry *cmd, struct scsi_cmnd *Cmnd, | |||
1017 | if (Cmnd->device->tagged_supported) { | 1018 | if (Cmnd->device->tagged_supported) { |
1018 | if (qpti->cmd_count[Cmnd->device->id] == 0) | 1019 | if (qpti->cmd_count[Cmnd->device->id] == 0) |
1019 | qpti->tag_ages[Cmnd->device->id] = jiffies; | 1020 | qpti->tag_ages[Cmnd->device->id] = jiffies; |
1020 | if ((jiffies - qpti->tag_ages[Cmnd->device->id]) > (5*HZ)) { | 1021 | if (time_after(jiffies, qpti->tag_ages[Cmnd->device->id] + (5*HZ))) { |
1021 | cmd->control_flags = CFLAG_ORDERED_TAG; | 1022 | cmd->control_flags = CFLAG_ORDERED_TAG; |
1022 | qpti->tag_ages[Cmnd->device->id] = jiffies; | 1023 | qpti->tag_ages[Cmnd->device->id] = jiffies; |
1023 | } else | 1024 | } else |