raid10: increment write counter after bio is split
authorTomasz Majchrzak <tomasz.majchrzak@intel.com>
Thu, 28 Jul 2016 08:28:25 +0000 (10:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Apr 2017 05:55:48 +0000 (07:55 +0200)
commit5ab82d803ddfd2a024dc6a90e44cc6c3e698a998
treecee1b3bd649d29aa8b2ece98b6cea71a5a934a68
parentb39ba71c054a02effa4acf1d4cb1c52f0c1e79df
raid10: increment write counter after bio is split

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.

Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/raid10.c