]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6208e741f9b08a7426eb19b4b29d0d481e073cf4
tree4c2fb693be89a59f9c89bd70b055c5e3327afe0e
parent02b95cb88e2fe2cb629d329ec98cea4f7765b0c4
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