]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: switch abort_limit to an atomic_t
authorChristoph Hellwig <hch@lst.de>
Fri, 20 Nov 2015 08:36:44 +0000 (09:36 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:46 +0000 (13:40 -0700)
commit4b6875cbce3da0ac10333699ea50916e695483f6
tree3be5035f13943837674be815db6c17838b3ff34f
parentfd9ab27f96ac5dfbe6467cc33cd407ea5143bf99
nvme: switch abort_limit to an atomic_t

There is no lock to sychronize access to the abort_limit field of
struct nvme_ctrl, so switch it to an atomic_t.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Orabug: 25130845
Cherry pick commit: 6bf25d1
Conflicts:
drivers/nvme/host/pci.c

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c