]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: cxlflash: Combine the send queue locks
authorUma Krishnan <ukrishn@linux.vnet.ibm.com>
Thu, 22 Jun 2017 02:13:32 +0000 (21:13 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 26 Jun 2017 19:01:06 +0000 (15:01 -0400)
commitb2e447ae90c5517f06d9ada94cf202e37084b406
treee12f8654394261424af0ee67d573e5bafacf9fc8
parent09beaf343bdc8cdd52ecb3c0568c830474ec9dfe
scsi: cxlflash: Combine the send queue locks

Currently there are separate spin locks for the two supported I/O queueing
models. This makes it difficult to serialize with paths outside the enqueue
path.

As a design simplification and to support serialization with enqueue
operations, move to only a single lock that is used for enqueueing
regardless of the queueing model.

Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com>
Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxlflash/common.h
drivers/scsi/cxlflash/main.c