Skip to content

Commit 9086cac

Browse files
i-shihaomartinkpetersen
authored andcommitted
scsi: qla4xxx: Use time conversion macros
Replace the raw use of 500 value in schedule_timeout() function with msecs_to_jiffies() to ensure intended value across different kernel configurations regardless of HZ value. Signed-off-by: Shi Hao <i.shihao.999@gmail.com> Link: https://patch.msgid.link/20251117200949.42557-1-i.shihao.999@gmail.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent eaea513 commit 9086cac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/scsi/qla4xxx/ql4_nx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ static int qla4_82xx_cmdpeg_ready(struct scsi_qla_host *ha, int pegtune_val)
15521552
(val == PHAN_INITIALIZE_ACK))
15531553
return 0;
15541554
set_current_state(TASK_UNINTERRUPTIBLE);
1555-
schedule_timeout(500);
1555+
schedule_timeout(msecs_to_jiffies(500));
15561556

15571557
} while (--retries);
15581558

0 commit comments

Comments
 (0)