patch-2.2.0-pre1 linux/drivers/scsi/advansys.c

Next file: linux/drivers/scsi/dc390.h
Previous file: linux/drivers/scsi/README.tmscsim
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.132/linux/drivers/scsi/advansys.c linux/drivers/scsi/advansys.c
@@ -5785,8 +5785,8 @@
         }
         scp->result = HOST_BYTE(DID_ERROR);
         ret = SCSI_RESET_ERROR;
-    } else if (jiffies >= boardp->last_reset &&
-               jiffies < (boardp->last_reset + (10 * HZ))) {
+    } else if (time_after_eq(jiffies, boardp->last_reset) &&
+               time_before(jiffies, boardp->last_reset + (10 * HZ))) {
         /*
          * Don't allow a reset to be attempted within 10 seconds
          * of the last reset.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov