]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
dm raid: display a consistent copy of the MD status via raid_status()
authorHeinz Mauelshagen <heinzm@redhat.com>
Sat, 2 Dec 2017 00:03:53 +0000 (01:03 +0100)
committerMike Snitzer <snitzer@redhat.com>
Fri, 8 Dec 2017 15:59:58 +0000 (10:59 -0500)
commit67143510a7e3634a23f06a48445d1148b2fdbc4d
tree969f40fe4b4d2b93c929388f39d021603509c75a
parentd39f0010e40964d959c5157be02839da8a178015
dm raid: display a consistent copy of the MD status via raid_status()

The MD sync thread updates recovery flags providing state of any
running, idle, frozen, recovering, reshaping, ... activity it performs
and updates respective flags asynchronously versus dm processing
raid_status().  To close that race window, take a single copy of the
flags and pass it into its callees.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c