OSDN Git Service

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

pr_preempt has a similar issue as reserve where for all the
reservation types except the All Registrants ones the preempt can
create a reservation. And a follow up reservation or release needs to
go down the same path the preempt did. This has the pr_preempt work
like reserve and release where we always start from the first path in
the first group.

This commit has been tested with windows failover clustering's
validation test and libiscsi's PGR tests to check for regressions.
They both don't have tests to verify this case, so I tested it
manually.

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