• Matthew Wilcox's avatar
    [SCSI] advansys: Remove some custom wrappers · b009bef6
    Matthew Wilcox authored
     - Replace ASC_ASSERT() with BUG_ON().
       In a few places, get rid of the assertion altogether -- the ensuing
       crash will tell us all we need to know.  Use BUG() where it fits better
       than BUG_ON().  Also fix a fencepost error in advansys_proc_info().
     - Replace DvcSleepMilliSecond with mdelay.
       Despite its name using 'sleep', the implementation was a delay.
       I've marked some places with XXX where we should probably be using
       msleep instead.  They need to be audited to be sure we can sleep in
       that context.
     - Replace DvcDelayMicroSecond with udelay.
     - Replace DvcDelayNanoSecond with udelay too.
       All callers were multiples of 1000.
     - Remove DvcEnterCritical and DvcLeaveCritical.
       These functions are no-ops, and as the comments said, the spinlock
       protects the critical sections.
    Signed-off-by: default avatarMatthew Wilcox <matthew@wil.cx>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
    b009bef6
advansys.c 514 KB