]> git.baikalelectronics.ru Git - 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)
commit5c0ad18a596ccc7d614baa65d0a29c03e259e225
tree969f40fe4b4d2b93c929388f39d021603509c75a
parent3b939afb5b2489c2e16394055286ab178da4c0a1
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