]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commit66ea9bcc392017b6df465b6f5847f6eac966a801
treee12f8654394261424af0ee67d573e5bafacf9fc8
parentd31b77911505bbd0cd06403bd5eff26d691ad62d
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