]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: use Retain Async Event bit to clear AEN
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Thu, 26 Jul 2018 21:00:41 +0000 (14:00 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 27 Jul 2018 17:14:31 +0000 (19:14 +0200)
commit792163e426137ada56831be64be006781a039060
tree52ce024be5c3a1f0a8c215940e8f8d927bf79180
parent49b1dc756c789f323d4eca1c0fd30155e7dbbc6b
nvmet: use Retain Async Event bit to clear AEN

In the current implementation, we clear the AEN bit when we get the
"get log page" command if given log page is associated with AEN.
This patch allows optionally retaining the AEN for the ctrl
under consideration when Retain Asynchronous Event (RAE) bit is set
as a part of "get log page" command.

This allows the host to read the Log page and optionally retaining the
AEN associated with this log page when using userspace tools like
nvme-cli.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
[hch: also use the new helper in the just merged ANA code]
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/admin-cmd.c