mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-16 01:24:08 +08:00
scsi: be2iscsi: Reduce driver load/unload time
Driver takes significant time to load 1m:20s and unload 40s. Checkpatch script threw warning: WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt To eliminate this warning msleep(1) was replaced with msleep(20) before submitting. msleep(20) in init and uninit path for creation and destroying of number of WRBQs, CQs, and EQs is adding to load/unload time. Replace msleep with schedule_timeout_uninterruptible of 1ms as its enough in most cases. Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
96eb8d4df5
commit
3c9e36a9d8
@ -655,7 +655,8 @@ static int be_mbox_db_ready_poll(struct be_ctrl_info *ctrl)
|
||||
|
||||
if (time_after(jiffies, timeout))
|
||||
break;
|
||||
msleep(20);
|
||||
/* 1ms sleep is enough in most cases */
|
||||
schedule_timeout_uninterruptible(msecs_to_jiffies(1));
|
||||
} while (!ready);
|
||||
|
||||
beiscsi_log(phba, KERN_ERR,
|
||||
|
Loading…
Reference in New Issue
Block a user