[PATCHv3] NVMe: Automatic namespace rescan
Jens Axboe
axboe at kernel.dk
Fri Jun 5 09:37:56 PDT 2015
On 06/01/2015 02:28 PM, Keith Busch wrote:
> 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.
Looks good to me. I'll apply this, and then I should also respin the
patch to detach namespaces dynamically on top of this.
--
Jens Axboe
More information about the Linux-nvme
mailing list