]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: mask pending AENs
authorChristoph Hellwig <hch@lst.de>
Wed, 30 May 2018 13:05:09 +0000 (15:05 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 1 Jun 2018 12:37:35 +0000 (14:37 +0200)
commit03d6cd2dce99ded3f8c1e69618cea97b1cd569c1
tree6d091a21477e56ac0ecbaba77212b25ec649493d
parent7a33b46e28fa8ec488ec2e94c3e1671f8f4368fb
nvmet: mask pending AENs

Per section 5.2 of the NVMe 1.3 spec:

  "When the controller posts a completion queue entry for an outstanding
  Asynchronous Event Request command and thus reports an asynchronous
  event, subsequent events of that event type are automatically masked by
  the controller until the host clears that event. An event is cleared by
  reading the log page associated with that event using the Get Log Page
  command (see section 5.14)."

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/target/admin-cmd.c
drivers/nvme/target/core.c
drivers/nvme/target/nvmet.h