diff options
author | Christoph Hellwig <hch@lst.de> | 2015-11-20 09:36:44 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-12-22 09:38:33 -0700 |
commit | 6bf25d16410d8d95e3552f31c6a99e3fc3d31752 (patch) | |
tree | 32299f8b98b400025295b54c41c99961539efcb2 /drivers/nvme/host/nvme.h | |
parent | 5c8809e650772be87ba04595a8ccf278bab7b543 (diff) | |
download | lwn-6bf25d16410d8d95e3552f31c6a99e3fc3d31752.tar.gz lwn-6bf25d16410d8d95e3552f31c6a99e3fc3d31752.zip |
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>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r-- | drivers/nvme/host/nvme.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index 88950f362d97..982fa303cec6 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -77,7 +77,7 @@ struct nvme_ctrl { u32 max_hw_sectors; u32 stripe_size; u16 oncs; - u16 abort_limit; + atomic_t abort_limit; u8 event_limit; u8 vwc; u32 vs; |