Skip to content

Fix EH race and MQ support

Tyrel Datwyler linux-scsi linuxppc-dev lkml 1 version Applied

Status from this message: Applied to 5.12/scsi-fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2ibmvfc: fix potential race in ibmvfc_wait_for_opsdrivers/scsi/ibmvscsi/ibmvfc.c+33 -91 reply
2/2ibmvfc: make ibmvfc_wait_for_ops MQ awaredrivers/scsi/ibmvscsi/ibmvfc.c+34 -171 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBrian King
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Fix EH race and MQ support

Changes to the locking pattern protecting the event lists and handling of scsi command completion introduced a race where an ouststanding command that EH is waiting ifor to complete is no longer identifiable by being on the sent list, but instead as a command that is not on the free list. This is a result of moving commands to be completed off the sent list to a private list to be completed outside the list lock.

Second, during MQ enablement the ibmvfc_wait_for_ops helper used during EH to ensure commands were properely completed failed to be converted to check for commands on the sub-queues isntead of the primary CRQ.

Tyrel Datwyler (2):
ibmvfc: fix potential race in ibmvfc_wait_for_ops
ibmvfc: make ibmvfc_wait_for_ops MQ aware

 drivers/scsi/ibmvscsi/ibmvfc.c | 67 +++++++++++++++++++++++++++-------
 1 file changed, 54 insertions(+), 13 deletions(-)
Signature · 1 line
2.27.0