]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9bc5ea34ff3d8c3a4882c89a72e1d7d8fc419737
tree76fcb476d6cb9ab4d8307ec7ff4dcfffbf1d296f
parentf467c8685c768b721e757e56d01d8e68d320332f
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