dm mpath: use double checked locking in fast path
authorMike Snitzer <snitzer@redhat.com>
Mon, 15 Jun 2020 15:31:04 +0000 (11:31 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 13 Jul 2020 15:47:32 +0000 (11:47 -0400)
commit374117ad4736c5a4f8012cfe59fc07d9d58191d5
tree53d95d7b94a1717a75ecb57010106eeef66df390
parent564dbb130b3f8ab39719a42c130505bf75610fbf
dm mpath: use double checked locking in fast path

Fast-path code biased toward lazy acknowledgement of bit being set
(primarily only for initialization).  Multipath code is very retry
oriented so even if state is missed it'll recover.

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