]> git.baikalelectronics.ru Git - kernel.git/commit
md: incorporate new plugging into raid5.
authorNeilBrown <neilb@suse.de>
Mon, 18 Apr 2011 08:25:43 +0000 (18:25 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 18 Apr 2011 08:25:43 +0000 (18:25 +1000)
commitb0ea4aff4e6f092995e24f83d1e4f5fb2a6066a7
treec0c50ab6ac43e9c762199bfd94c787f43a8e0896
parent5fb473cad5b8856ca675d35b0009ea235b5fe31a
md: incorporate new plugging into raid5.

In raid5 plugging is used for 2 things:
 1/ collecting writes that require a bitmap update
 2/ collecting writes in the hope that we can create full
    stripes - or at least more-full.

We now release these different sets of stripes when plug_cnt
is zero.

Also in make_request, we call mddev_check_plug to hopefully increase
plug_cnt, and wake up the thread at the end if plugging wasn't
achieved for some reason.

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