]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: be2iscsi: Reduce driver load/unload time
authorJitendra Bhivare <jitendra.bhivare@broadcom.com>
Fri, 19 Aug 2016 09:50:00 +0000 (15:20 +0530)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:50:50 +0000 (19:50 -0500)
commit386c24f6a1c15ec203c8778033022fc8a2099f98
treea6c0b73b0b9baf618e1b516d5fd3ad5253c725f0
parent7c6aacefea2e265d905eaa9ec4d21a70bf747b2e
scsi: be2iscsi: Reduce driver load/unload time

Orabug: 25655127

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>
Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/scsi/be2iscsi/be_cmds.c