From: Indraneel M Date: Thu, 11 Dec 2014 15:24:18 +0000 (-0700) Subject: NVMe: Fix FS mount issue (hot-remove followed by hot-add) X-Git-Tag: omap-for-v3.20/drop-legacy-3517~91^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=285dffc9101244ac65c29672a1fb3fe614b52238;p=pandora-kernel.git NVMe: Fix FS mount issue (hot-remove followed by hot-add) After Hot-remove of a device with a mounted partition, when the device is hot-added again, the new node reappears as nvme0n1. Mounting this new node fails with the error: mount: mount /dev/nvme0n1p1 on /mnt failed: File exists. The old nodes's FS entries still exist and the kernel can't re-create procfs and sysfs entries for the new node with the same name. The patch fixes this issue. Acked-by: Keith Busch Signed-off-by: Indraneel M Signed-off-by: Jens Axboe --- Reading git-diff-tree failed