Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Shi Hao and committed by
Martin K. Petersen
9086cac8 eaea5130

+1 -1
+1 -1
drivers/scsi/qla4xxx/ql4_nx.c
··· 1552 1552 (val == PHAN_INITIALIZE_ACK)) 1553 1553 return 0; 1554 1554 set_current_state(TASK_UNINTERRUPTIBLE); 1555 - schedule_timeout(500); 1555 + schedule_timeout(msecs_to_jiffies(500)); 1556 1556 1557 1557 } while (--retries); 1558 1558