]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Allow user initiated rescan
authorKeith Busch <keith.busch@intel.com>
Fri, 29 Apr 2016 21:45:18 +0000 (15:45 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:41:25 +0000 (13:41 -0700)
commita53ca73432674f5794a3f85fde8b65b88656c956
tree335f67426d759e84f741480a4c026dc7922062c4
parente97e08cf5d5a1b4b2798e7ecc875ea8a89ac52f8
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.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 9ec3bb2f994bda9c8817856fdcbfaebe8f62fbd3)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/core.c
include/uapi/linux/nvme_ioctl.h