[SCSI] libsas: pre-clean commands that won the eh vs completion race
authorDan Williams <dan.j.williams@intel.com>
Mon, 9 Jan 2012 18:12:52 +0000 (10:12 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 29 Feb 2012 21:20:01 +0000 (15:20 -0600)
When scrolling forward through the eh list (in a clear_q scenario) it is
possible to encounter commands that won the completion vs eh race.  Rather
than sprinkle more "if (!task)" throughout the handler just make a pass
through the list and delete the race winners before handling the rest.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libsas/sas_scsi_host.c

Simple merge