NVMe: Allow user initiated rescan
authorKeith Busch <keith.busch@intel.com>
Fri, 29 Apr 2016 21:45:18 +0000 (15:45 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 17 May 2016 23:14:21 +0000 (17:14 -0600)
commit9ec3bb2f994bda9c8817856fdcbfaebe8f62fbd3
treef97fe0c5ee4c45fe9bc93a735c73d84cef992585
parentd011fb3164e8694d7839f10a497f8ab6c660149a
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>
drivers/nvme/host/core.c
include/uapi/linux/nvme_ioctl.h