[PATCH v4 1/3] nvme: define an event bit enum for nvme_ctrl::events

Nilay Shroff nilay at linux.ibm.com
Tue Nov 24 07:24:15 PST 2026


On 11/24/26 5:30 PM, Guixin Liu wrote:
> The only bit used in nvme_ctrl::events is indexed with
> NVME_AER_NOTICE_NS_CHANGED, an AER subtype value that doubles as the
> bit number.  The AER subtypes are numbered per event type and are not
> a bit namespace -- the notice and SMART values overlap -- so borrowing
> them as indices gets ambiguous as soon as more bits are needed.  Give
> the events field its own numbering.
> 
> Signed-off-by: Guixin Liu<kanie at linux.alibaba.com>

Looks good to me:

Reviewed-by: Nilay Shroff <nilay at linux.ibm.com>



More information about the Linux-nvme mailing list