nvme: don't enable AEN if not supported
authorWeiping Zhang <zhangweiping@didichuxing.com>
Mon, 2 Jul 2018 16:34:38 +0000 (00:34 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 4 Aug 2018 18:39:56 +0000 (12:39 -0600)
commit290a40cb336c64c2ad8eb12ee1afcb07c3e84fbf
treeb3790be965c1c7aca75146702ab3c1050730b27b
parent704f83928c8e7da6e06144569efb15dec73278e8
nvme: don't enable AEN if not supported

Avoid excuting set_feature command if there is no supported bit in
Optional Asynchronous Events Supported (OAES).

Fixes: c0561f82 ("nvme: submit AEN event configuration on startup")
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Weiping Zhang <zhangweiping@didichuxing.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c