Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be2a2656 authored by NeilBrown's avatar NeilBrown
Browse files

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: default avatarNeilBrown <neilb@suse.de>
parent a167f663
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -343,7 +343,7 @@ static void write_page(struct bitmap *bitmap, struct page *page, int wait)
			atomic_inc(&bitmap->pending_writes);
			set_buffer_locked(bh);
			set_buffer_mapped(bh);
			submit_bh(WRITE, bh);
			submit_bh(WRITE | REQ_UNPLUG | REQ_SYNC, bh);
			bh = bh->b_this_page;
		}