]> git.neil.brown.name Git - linux.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)
commit55fdd6b6134fc91d4722149fa8e4f2df24c428fe
tree6d091a21477e56ac0ecbaba77212b25ec649493d
parentc86b8f7b4144affc4daa8b4047cd4da936b087ef
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