]> bbs.cooldavid.org Git - net-next-2.6.git/commit
md/bitmap: clean up plugging calls.
authorNeilBrown <neilb@suse.de>
Tue, 1 Jun 2010 09:37:33 +0000 (19:37 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 26 Jul 2010 03:21:32 +0000 (13:21 +1000)
commitb63d7c2e29bf9cc94989806f2df0cfca4976b830
treefdb82527ca458769d3c7381375873931bfb23b19
parent5ff5afffe6527543866a47ffab12769427283917
md/bitmap: clean up plugging calls.

1/ use md_unplug in bitmap.c as we will soon be using bitmaps under
  arrays with no queue attached.

2/ Don't bother plugging the queue when we set a bit in the bitmap.
   The reason for this was to encourage as many bits as possible to
   get set before we unplug and write stuff out.
   However every personality already plugs the queue after
   bitmap_startwrite either directly (raid1/raid10) or be setting
   STRIPE_BIT_DELAY which causes the queue to be plugged later
   (raid5).

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