From: Keith Busch Date: Wed, 10 Sep 2014 23:21:14 +0000 (-0600) Subject: NVMe: Add revalidate_disk callback X-Git-Tag: omap-for-v3.19/fixes-rc1~94^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b9dbf7fe02d85f70e8efc1c12c070206c0d5c5f;p=pandora-kernel.git NVMe: Add revalidate_disk callback This adds a callback to revalidate the disk and change its block size and capacity if needed. Before, a user would have to remove + rescan an entire device if they changed the logical block size using an NVMe Format or other vendor specific command; now they can just run something that issues the BLKRRPART IOCTL, like # hdparm -z /dev/nvmeXnY This can also be used in response to the 1.2 Spec's Namespace Attribute Change asynchronous event. Signed-off-by: Keith Busch Signed-off-by: Matthew Wilcox Signed-off-by: Jens Axboe --- Reading git-diff-tree failed