]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ibmvfc: Relax locking around ibmvfc_queuecommand()
authorTyrel Datwyler <tyreld@linux.ibm.com>
Wed, 6 Jan 2021 20:18:35 +0000 (14:18 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 Jan 2021 03:37:13 +0000 (22:37 -0500)
commit8735d7a3c8ac3959eb89d1965dc7481891d137e0
tree268a0b828dcd418d2f8a2f48f6f2f8f4bf7bdde5
parentc8c3ad61e6dae1d1129fca4d34e5cddfe6f1c5eb
scsi: ibmvfc: Relax locking around ibmvfc_queuecommand()

The driver's queuecommand routine is still wrapped to hold the host lock
for the duration of the call. This will become problematic when moving to
multiple queues due to the lock contention preventing asynchronous
submissions to mulitple queues. There is no real legitimate reason to hold
the host lock, and previous patches have insured proper protection of
moving ibmvfc_event objects between free and sent lists.

Link: https://lore.kernel.org/r/20210106201835.1053593-6-tyreld@linux.ibm.com
Reviewed-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ibmvscsi/ibmvfc.c