OSDN Git Service

md: move suspend_hi/lo handling into core md code
authorNeilBrown <neilb@suse.com>
Tue, 17 Oct 2017 02:46:43 +0000 (13:46 +1100)
committerShaohua Li <shli@fb.com>
Thu, 2 Nov 2017 04:32:19 +0000 (21:32 -0700)
commitb3143b9a38d5039bcd1f2d1c94039651bfba8043
tree7d26c40b3b76d75b80103cb9c8d269e9e08939ed
parent52a0d49de3d592a3118e13f35985e3d99eaf43df
md: move suspend_hi/lo handling into core md code

responding to ->suspend_lo and ->suspend_hi is similar
to responding to ->suspended.  It is best to wait in
the common core code without incrementing ->active_io.
This allows mddev_suspend()/mddev_resume() to work while
requests are waiting for suspend_lo/hi to change.
This is will be important after a subsequent patch
which uses mddev_suspend() to synchronize updating for
suspend_lo/hi.

So move the code for testing suspend_lo/hi out of raid1.c
and raid5.c, and place it in md.c

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c
drivers/md/raid1.c
drivers/md/raid5.c