]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: add handle_flags arg to break_stripe_batch_list.
authorNeilBrown <neilb@suse.de>
Thu, 21 May 2015 02:20:36 +0000 (12:20 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 May 2015 01:39:30 +0000 (11:39 +1000)
commitb371b0067d59343f389df9a8bb24eed4eebe2ac5
tree7b82e757c74b17eb638cff9723b2a6ae68e831b7
parent4758d1c357540646e3f0a6398301d52a02985097
md/raid5: add handle_flags arg to break_stripe_batch_list.

When we break a stripe_batch_list we sometimes want to set
STRIPE_HANDLE on the individual stripes, and sometimes not.

So pass a 'handle_flags' arg.  If it is zero, always set STRIPE_HANDLE
(on non-head stripes).  If not zero, only set it if any of the given
flags are present.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c