[PATCH] nvme: block ioctls if controller not in a live state

Keith Busch keith.busch at linux.intel.com
Mon May 14 08:23:08 PDT 2018


On Mon, May 07, 2018 at 03:55:58PM -0700, James Smart wrote:
> Rather than allow ioctl-based admin cmds to get intermixed on the admin
> queue with commands being used to initialize a controller or io commands
> to go to a controller in reconnect thus possibly hanging, reject them
> if the controller isn't in the LIVE state. Reject with an -EAGAIN status
> so that the app knows it could retry.

The admin ioctl is fine to use in ADMIN_ONLY state as well.



More information about the Linux-nvme mailing list