diff options
author | Keith Busch <keith.busch@intel.com> | 2015-06-01 14:28:14 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-06-05 10:58:34 -0600 |
commit | a5768aa887fb636f0cc4c83a2f1242506aaf50f6 (patch) | |
tree | 872ae3d7e554faa24994d62ac7ff921aa47a9aed /include/linux/nvme.h | |
parent | b281ebb817b009dc586347d7800b80944ba3ec18 (diff) | |
download | linux-stable-a5768aa887fb636f0cc4c83a2f1242506aaf50f6.tar.gz linux-stable-a5768aa887fb636f0cc4c83a2f1242506aaf50f6.tar.bz2 linux-stable-a5768aa887fb636f0cc4c83a2f1242506aaf50f6.zip |
NVMe: Automatic namespace rescan
Namespaces may be dynamically allocated and deleted or attached and
detached. This has the driver rescan the device for namespace changes
after each device reset or namespace change asynchronous event.
There could potentially be many detached namespaces that we don't want
polluting /dev/ with unusable block handles, so this will delete disks
if the namespace is not active as indicated by the response from identify
namespace. This also skips adding the disk if no capacity is provisioned
to the namespace in the first place.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/nvme.h')
-rw-r--r-- | include/linux/nvme.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h index 986bf8ad8e93..c0d94ed8ce9a 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h @@ -92,6 +92,7 @@ struct nvme_dev { work_func_t reset_workfn; struct work_struct reset_work; struct work_struct probe_work; + struct work_struct scan_work; char name[12]; char serial[20]; char model[40]; |