]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dm mpath: add locking to multipath_resume and must_push_back
authorMike Snitzer <snitzer@redhat.com>
Tue, 26 Jul 2016 01:08:51 +0000 (21:08 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 2 Aug 2016 20:21:34 +0000 (16:21 -0400)
commit1814f2e3fb95b58490e56a38fefe462ffe8fb9ad
treebc878dcc44bb1e04a0ceb44bf4bcbcf8d82e98b3
parent99f3c90d0d85708e7401a81ce3314e50bf7f2819
dm mpath: add locking to multipath_resume and must_push_back

Multiple flags were being tested without locking.  Protect against
non-atomic bit changes in m->flags by holding m->lock (while testing or
setting the queue_if_no_path related flags).

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-mpath.c