NVMe: Reread partitions on metadata formats
authorKeith Busch <keith.busch@intel.com>
Tue, 14 Jul 2015 17:57:48 +0000 (11:57 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 15 Jul 2015 21:36:47 +0000 (15:36 -0600)
commit7bee607472aa2e5a36dfe143e5a625be06125f53
treef29a2b65c3db1a44c63c44244be1237ca3eb750f
parent77b5a08427e87514c33730afc18cd02c9475e2c3
NVMe: Reread partitions on metadata formats

This patch has the driver automatically reread partitions if a namespace
has a separate metadata format. Previously revalidating a disk was
sufficient to get the correct capacity set on such formatted drives,
but partitions that may exist would not have been surfaced.

Reported-by: Paul Grabinar <paul.grabinar@ranbarg.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Cc: Matthew Wilcox <willy@linux.intel.com>
Tested-by: Paul Grabinar <paul.grabinar@ranbarg.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c