[PATCH 3/3] nvme: use helper nvme_ctrl_state in nvme_keep_alive_end_io function

Sagi Grimberg sagi at grimberg.me
Sun Oct 27 15:07:46 PDT 2024




On 27/10/2024 19:02, Nilay Shroff wrote:
> We no more need acquiring ctrl->lock before accessing the
> NVMe controller state and instead we can now use the helper
> nvme_ctrl_state. So replace the use of ctrl->lock from
> nvme_keep_alive_end_io function with nvme_ctrl_state call.

The patch description is not clear. Why do we "no longer need"
to take the ctrl->lock? What exactly changed for this?



More information about the Linux-nvme mailing list