Skip to content
Commit 285dffc9 authored by Indraneel M's avatar Indraneel M Committed by Jens Axboe
Browse files

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: default avatarKeith Busch <keith.busch@intel.com>
Signed-off-by: default avatarIndraneel M <indraneel.m@samsung.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent d8ead9b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment