History

NVMe: Allow user initiated rescan

This exposes ioctl and sysfs methods a user can invoke to request the driver rescan a controller and its namespaces. This is less harsh than doing a controller reset, which temporarilly halts all IO, just to surface a newly attached namespace. This is mainly useful for controllers that implement the namespace management command, but do not support the namespace notify change asynchronous event notification.

Keith Busch committed 10 years ago

Commit 9ec3bb21 parent d011fb32 files · +16 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/nvme_ioctl.h+1−0
@@ -61,5 +61,6 @@ struct nvme_passthru_cmd { · 60 unmodified lines
6161 #define NVME_IOCTL_IO_CMD _IOWR('N', 0x43, struct nvme_passthru_cmd)
6262 #define NVME_IOCTL_RESET _IO('N', 0x44)
6363 #define NVME_IOCTL_SUBSYS_RESET _IO('N', 0x45)
64+#define NVME_IOCTL_RESCAN _IO('N', 0x46)
6465
6566 #endif /* _UAPI_LINUX_NVME_IOCTL_H */