summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2023-03-10 10:38:53 +0300
committerSong Liu <song@kernel.org>2023-04-14 10:41:40 +0300
commit26208a7cffd0c7cbf14237ccd20c7270b3ffeb7e (patch)
tree1e9287682c03065f3f293a66a25eb2220c7a4fb7 /tools/perf/scripts/python/export-to-sqlite.py
parent9fdfe6d45be2fe1bd07678bfc453e6a627c08223 (diff)
downloadlinux-26208a7cffd0c7cbf14237ccd20c7270b3ffeb7e.tar.xz
md/raid10: fix leak of 'r10bio->remaining' for recovery
raid10_sync_request() will add 'r10bio->remaining' for both rdev and replacement rdev. However, if the read io fails, recovery_request_write() returns without issuing the write io, in this case, end_sync_request() is only called once and 'remaining' is leaked, cause an io hang. Fix the problem by decreasing 'remaining' according to if 'bio' and 'repl_bio' is valid. Fixes: 24afd80d99f8 ("md/raid10: handle recovery of replacement devices.") Signed-off-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Song Liu <song@kernel.org> Link: https://lore.kernel.org/r/20230310073855.1337560-5-yukuai1@huaweicloud.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions