diff options
author | 2016-09-08 10:43:58 -0700 | |
---|---|---|
committer | 2016-09-09 11:09:19 -0700 | |
commit | c94455558337eece474eebb6a16b905f98930418 (patch) | |
tree | 7e3120b034308cb83e83e6f93f40745f206848cf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | md-cluster: make md-cluster also can work when compiled into kernel (diff) | |
download | linux-dev-c94455558337eece474eebb6a16b905f98930418.tar.xz linux-dev-c94455558337eece474eebb6a16b905f98930418.zip |
raid5: fix a small race condition
commit 5f9d1fde7d54a5(raid5: fix memory leak of bio integrity data)
moves bio_reset to bio_endio. But it introduces a small race condition.
It does bio_reset after raid5_release_stripe, which could make the
stripe reusable and hence reuse the bio just before bio_reset. Moving
bio_reset before raid5_release_stripe is called should fix the race.
Reported-and-tested-by: Stefan Priebe - Profihost AG <s.priebe@profihost.ag>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions