diff options
author | Christoph Hellwig <hch@lst.de> | 2018-05-25 18:17:41 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-06-01 14:37:35 +0200 |
commit | 30d90964e7b80a0723921e8b464c5ceda7297a7b (patch) | |
tree | c418113e30345fb7ccc120a7babbb28c1ef7d296 /drivers/nvme/host/nvme.h | |
parent | nvme: mark nvme_queue_scan static (diff) | |
download | linux-30d90964e7b80a0723921e8b464c5ceda7297a7b.tar.xz linux-30d90964e7b80a0723921e8b464c5ceda7297a7b.zip |
nvme: use the changed namespaces list log to clear ns data changed AENs
Per section 5.2 we need to issue the corresponding log page to clear an
AEN, so for a namespace data changed AEN we need to read the changed
namespace list log. And once we read that log anyway we might as well
use it to optimize the rescan.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to '')
-rw-r--r-- | drivers/nvme/host/nvme.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index 11681278fdf6..07e8bfe705c6 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -189,6 +189,8 @@ struct nvme_ctrl { struct delayed_work ka_work; struct nvme_command ka_cmd; struct work_struct fw_act_work; +#define EVENT_NS_CHANGED (1 << 0) + unsigned long events; /* Power saving configuration */ u64 ps_max_latency_us; |