]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Reread partitions on metadata formats
authorKeith Busch <keith.busch@intel.com>
Tue, 14 Jul 2015 17:57:48 +0000 (11:57 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:31:48 +0000 (16:31 -0700)
commitbf52a36b8ff3b560b5c0e19da6e414aab0772d9d
tree684f0490b0cf779c6739d4930309621dd1ad87dc
parentc306d0317d0b79eacf91c92d06ec9474a7223d56
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>
(cherry picked from commit 7bee607472aa2e5a36dfe143e5a625be06125f53)

Orabug: 22620486
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/block/nvme-core.c