]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb1771bedf3914d4afc4f6b778239083640d0845
tree0fb48d9ce94341af131c1f1ddb3df6e30cb6c10e
parentaffc452f4dc0e4091efb0be8c4ce6ba645894d9c
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