diff options
| author | Anton Volkov <[email protected]> | 2017-08-07 15:37:50 +0300 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2017-08-15 12:49:20 -0600 |
| commit | a8c1d064d3e80aa9e3ca39e908391e433cc53f78 (patch) | |
| tree | e6f2c12bab61e12cf34d1b8815bb224d63a482cb /tools/perf/scripts/python | |
| parent | b3193bc0dca9bb69c8ba1ec1a318105c76eb4172 (diff) | |
loop: fix to a race condition due to the early registration of device
The early device registration made possible a race leading to allocations
of disks with wrong minors.
This patch moves the device registration further down the loop_init
function to make the race infeasible.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Anton Volkov <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions