]> git.baikalelectronics.ru Git - kernel.git/commit
blk-cgroup: blk_cgroup_bio_start() should use irq-safe operations on blkg->iostat_cpu
authorTejun Heo <tj@kernel.org>
Thu, 14 Oct 2021 23:20:22 +0000 (13:20 -1000)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:17:01 +0000 (06:17 -0600)
commit8bbb948e540df60fbd2fdb120b1b714672a5e2bd
tree8d204be36c3df0a58fdc58cb1c785f1f5812def5
parent9a90a4ad3df1ecb40c41849efe744f333f366654
blk-cgroup: blk_cgroup_bio_start() should use irq-safe operations on blkg->iostat_cpu

0cd853481f53 ("cgroup: rstat: fix A-A deadlock on 32bit around
u64_stats_sync") made u64_stats updates irq-safe to avoid A-A deadlocks.
Unfortunately, the conversion missed one in blk_cgroup_bio_start(). Fix it.

Fixes: ab056c9e920b ("mm: memcontrol: switch to rstat")
Cc: stable@vger.kernel.org # v5.13+
Reported-by: syzbot+9738c8815b375ce482a1@syzkaller.appspotmail.com
Signed-off-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/YWi7NrQdVlxD6J9W@slm.duckdns.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c