OSDN Git Service

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)
commitb369b30cf510fe94d8884837039362e2ec223cec
tree52ce024be5c3a1f0a8c215940e8f8d927bf79180
parent62ac0d32f74ea511d5813be728dc589d03f866a3
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