nvme: use the changed namespaces list log to clear ns data changed AENs
authorChristoph Hellwig <hch@lst.de>
Fri, 25 May 2018 16:17:41 +0000 (18:17 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 1 Jun 2018 12:37:35 +0000 (14:37 +0200)
commit30d90964e7b80a0723921e8b464c5ceda7297a7b
treec418113e30345fb7ccc120a7babbb28c1ef7d296
parent50e8d8eeede8d1ef48699a82acfb7d4be07a05d9
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>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h