]> 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)
commit694ab2762ff55f32923c85efa65093a7b68c5777
tree52ce024be5c3a1f0a8c215940e8f8d927bf79180
parent336cea0f93c809213587da6e78c6c5bea6360914
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