diff options
author | NeilBrown <neilb@suse.de> | 2010-10-27 00:37:41 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-10-29 01:40:32 -0400 |
commit | be2a2656eef95c32ca73e7a6a8c85671aa92e3f1 (patch) | |
tree | caea637e7247c0d57d8b1fe0042a5b7a0994ed9c /drivers/md | |
parent | a167f663243662aa9153c01086580a11cde9ffdc (diff) |
md: unplug writes to external bitmaps.
When writing to an 'external' bitmap we don't currently unplug the
device before waiting, so we can get a 3msec delay each time;
So use REQ_UNPLUG to force and unplug.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index fdde0279755f..5a1ffe3527aa 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c | |||
@@ -343,7 +343,7 @@ static void write_page(struct bitmap *bitmap, struct page *page, int wait) | |||
343 | atomic_inc(&bitmap->pending_writes); | 343 | atomic_inc(&bitmap->pending_writes); |
344 | set_buffer_locked(bh); | 344 | set_buffer_locked(bh); |
345 | set_buffer_mapped(bh); | 345 | set_buffer_mapped(bh); |
346 | submit_bh(WRITE, bh); | 346 | submit_bh(WRITE | REQ_UNPLUG | REQ_SYNC, bh); |
347 | bh = bh->b_this_page; | 347 | bh = bh->b_this_page; |
348 | } | 348 | } |
349 | 349 | ||