Patch "md/raid1/10: add missed blk plug" has been added to the 4.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
md/raid1/10: add missed blk plug
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
md-raid1-10-add-missed-blk-plug.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Fri Feb 23 11:45:09 CET 2018
From: Shaohua Li <[email protected]>
Date: Fri, 1 Dec 2017 12:12:34 -0800
Subject: md/raid1/10: add missed blk plug
From: Shaohua Li <[email protected]>
[ Upstream commit 18022a1bd3709b74ca31ef0b28fccd52bcd6c504 ]
flush_pending_writes isn't always called with block plug, so add it, and plug works in nested way.
--- drivers/md/raid1.c | 4 ++++ drivers/md/raid10.c | 4 ++++ 2 files changed, 8 insertions(+)
drivers/md/raid1.c +4 -0
@@ -810,11 +810,15 @@ static void flush_pending_writes(structspin_lock_irq (&conf->device_lock);if (conf->pending_bio_list.head) { +struct blk_plug plug;struct bio *bio; + bio =bio_list_get (&conf->pending_bio_list); conf->pending_count =0 ;spin_unlock_irq (&conf->device_lock); +blk_start_plug (&plug);flush_bio_list (conf, bio); +blk_finish_plug (&plug); }else spin_unlock_irq (&conf->device_lock); }
drivers/md/raid10.c +4 -0
@@ -890,10 +890,13 @@ static void flush_pending_writes(structspin_lock_irq (&conf->device_lock);if (conf->pending_bio_list.head) { +struct blk_plug plug;struct bio *bio; + bio =bio_list_get (&conf->pending_bio_list); conf->pending_count =0 ;spin_unlock_irq (&conf->device_lock); +blk_start_plug (&plug);/* flush any pending bitmap writes to disk * before proceeding w/ I/O */ bitmap_unplug (conf->mddev->bitmap);
@@ -914,6 +917,7 @@ static void flush_pending_writes(structgeneric_make_request (bio); bio = next; } +blk_finish_plug (&plug); }else spin_unlock_irq (&conf->device_lock); }
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/md-raid5-correct-degraded-calculation-in-raid5_error.patch queue-4.14/md-raid1-10-add-missed-blk-plug.patch