nvme: switch abort_limit to an atomic_t
authorChristoph Hellwig <hch@lst.de>
Fri, 20 Nov 2015 08:36:44 +0000 (09:36 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 22 Dec 2015 16:38:33 +0000 (09:38 -0700)
commit6bf25d16410d8d95e3552f31c6a99e3fc3d31752
tree32299f8b98b400025295b54c41c99961539efcb2
parent5c8809e650772be87ba04595a8ccf278bab7b543
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>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c