scsi: qla2xxx: Change abort wait_loop from msleep to wait_event_timeout
authorGiridhar Malavali <gmalavali@marvell.com>
Tue, 2 Apr 2019 21:24:33 +0000 (14:24 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Apr 2019 03:45:59 +0000 (23:45 -0400)
commit711a08d79f718abcdd3f86f44ffa8473ef1486ef
tree6077ba80eceb6b40e453205092fc92d01e4885c2
parentb2d1453a45aa8477b1d33ee94a7694146bb8b340
scsi: qla2xxx: Change abort wait_loop from msleep to wait_event_timeout

This patch converts driver wait time from using msleep to
wair_event_timeout to prevent race condition.

Signed-off-by: Giridhar Malavali <gmalavali@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_os.c