diff options
author | Israel Rukshin <[email protected]> | 2022-07-14 12:42:10 +0000 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2022-07-14 16:35:25 +0200 |
commit | 6961b5e02876b3b47f030a1f1ee8fd3e631ac270 (patch) | |
tree | f49e504cba085c2c50d241abc54d573c413294d3 /fs/jbd2/commit.c | |
parent | 081f5e753c9c4cd1dd86000bcc7f5fe14cbdcab0 (diff) |
nvme: fix block device naming collision
The issue exists when multipath is enabled and the namespace is
shared, but all the other controller checks at nvme_is_unique_nsid()
are false. The reason for this issue is that nvme_is_unique_nsid()
returns false when is called from nvme_mpath_alloc_disk() due to an
uninitialized value of head->shared. The patch fixes it by setting
head->shared before nvme_mpath_alloc_disk() is called.
Fixes: 5974ea7ce0f9 ("nvme: allow duplicate NSIDs for private namespaces")
Signed-off-by: Israel Rukshin <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
Reviewed-by: Max Gurtovoy <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions