remove sleep_on_timeout usage in megaraid
Subsystems (2)
PATCH 1/1 remove sleep_on_timeout usage in megaraid
megaraid does sleep_on_timeout on a stack waitq - use msleep instead.
drivers/scsi/megaraid.c +3 -6
@@ -4068,7 +4068,6 @@static int mega_del_logdrv (adapter_t *adapter,int logdrv) { -DECLARE_WAIT_QUEUE_HEAD (wq);unsigned long flags;scb_t *scb;int rval;
@@ -4083,11 +4082,9 @@* Wait till all the issued commands are complete and there are no * commands in the pending queue */ -while (atomic_read (&adapter->pend_cmds) >0 || - !list_empty (&adapter->pending_list) ) { - -sleep_on_timeout ( &wq,1 *HZ );/* sleep for 1s */ - } +while (atomic_read (&adapter->pend_cmds) >0 || + !list_empty (&adapter->pending_list)) +msleep (1000 );/* sleep for 1s */ rval =mega_do_del_logdrv (adapter, logdrv);