isci: fix isci_terminate_pending() list management
authorDan Williams <dan.j.williams@intel.com>
Mon, 20 Jun 2011 22:11:22 +0000 (15:11 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 11:04:50 +0000 (04:04 -0700)
commit980d3aeb3828b0fdf2a0b2e893d238130b014575
tree76fcb476d6cb9ab4d8307ec7ff4dcfffbf1d296f
parent77c852f312243192b1f2ce7fc56d678784786692
isci: fix isci_terminate_pending() list management

Walk through the list of pending requests being careful to consider that
multiple requests can be terminated when the lock is dropped (i.e.
invalidating the 'next' reference established by
list_for_each_entry_safe).

Also noticed that all callers to isci_terminate_pending_requests()
specifying terminating, so just drop the parameter.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/remote_device.c
drivers/scsi/isci/request.h
drivers/scsi/isci/task.c