]> 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)
commitf6d8a71125c12e2cd75c04ee87806a32dbf933c1
tree6d091a21477e56ac0ecbaba77212b25ec649493d
parent3e20360e14dbfea16eea137f513a56f87349d23d
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