Patch "raid10: increment write counter after bio is split" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
raid10: increment write counter after bio is split
to the 4.4-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:
raid10-increment-write-counter-after-bio-is-split.patch
and it can be found in the queue-4.4 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
9b622e2bbcf049c82e2550d35fb54ac205965f50Mon Sep 17 00:00:00 2001
From: Tomasz Majchrzak <[email protected]>
Date: Thu, 28 Jul 2016 10:28:25 +0200
Subject: raid10: increment write counter after bio is split
From: Tomasz Majchrzak <[email protected]>
commit 9b622e2bbcf049c82e2550d35fb54ac205965f50 upstream.
md pending write counter must be incremented after bio is split, otherwise it gets decremented too many times in end bio callback and becomes negative.
--- drivers/md/raid10.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/md/raid10.c +2 -2
@@ -1072,6 +1072,8 @@ static void __make_request(struct mddevint max_sectors;int sectors; +md_write_start (mddev, bio); +/* * Register the new request and wait if the reconstruction * thread has put up a bar for new requests.
@@ -1455,8 +1457,6 @@ static void make_request(struct mddev *mreturn ; } -md_write_start (mddev, bio); - do { /*
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/raid10-increment-write-counter-after-bio-is-split.patch