diff options
author | 2022-06-14 11:10:28 -0500 | |
---|---|---|
committer | 2022-06-15 11:51:41 -0400 | |
commit | 10eb3a0d517fcc83eeea4242c149461205675eb4 (patch) | |
tree | c1a72661ab3a31ea4c6155918bbb979ebbec522f /scripts/gdb/linux/utils.py | |
parent | Linux 5.19-rc2 (diff) | |
download | linux-dev-10eb3a0d517fcc83eeea4242c149461205675eb4.tar.xz linux-dev-10eb3a0d517fcc83eeea4242c149461205675eb4.zip |
dm: fix race in dm_start_io_acct
After commit 82f6cdcc3676c ("dm: switch dm_io booleans over to proper
flags") dm_start_io_acct stopped atomically checking and setting
was_accounted, which turned into the DM_IO_ACCOUNTED flag. This opened
the possibility for a race where IO accounting is started twice for
duplicate bios. To remove the race, check the flag while holding the
io->lock.
Fixes: 82f6cdcc3676c ("dm: switch dm_io booleans over to proper flags")
Cc: stable@vger.kernel.org
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions