dm: Start pr_reserve from the same starting path
authorMike Christie <michael.christie@oracle.com>
Sun, 17 Jul 2022 22:45:06 +0000 (17:45 -0500)
committerMike Snitzer <snitzer@kernel.org>
Thu, 28 Jul 2022 21:29:56 +0000 (17:29 -0400)
commit701510875975ed7e188566de205990d29f34c8d8
tree0fb48d9ce94341af131c1f1ddb3df6e30cb6c10e
parent8dd87f3c5283de7f95396a236e420487226f3951
dm: Start pr_reserve from the same starting path

When an app does a pr_reserve it will go to whatever path we happen to
be using at the time. This can result in errors when the app does a
second pr_reserve call and expects success but gets a failure because
the reserve is not done on the holder's path. This commit has us
always start trying to do reserves from the first path in the first
group.

Windows failover clustering will produce the type of pattern above.
With this commit, we will now pass its validation test for this case.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm.c