]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/md/raid10.c
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)
committerShaohua Li <shli@fb.com>
Sat, 30 Jul 2016 21:09:30 +0000 (14:09 -0700)
commit9b622e2bbcf049c82e2550d35fb54ac205965f50
tree5aa27a7bce8a781c488d108d9d1ed098eddaf0ca
parentd761f3ed6e71bcca724a6e9e39efcac65b7b4ac1
raid10: increment write counter after bio is split

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>
drivers/md/raid10.c