]> 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)
commit16a72b91cd04717a875665ade90d0c9755a4eb40
tree76fcb476d6cb9ab4d8307ec7ff4dcfffbf1d296f
parent05e0f0ade5db5a3731f8d75eda0b06b956c22d7d
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