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)
commit3c08b0931eedd04c530040499fadeccab50ed646
tree8d204be36c3df0a58fdc58cb1c785f1f5812def5
parent519d81956ee277b4419c723adfb154603c2565ba
blk-cgroup: blk_cgroup_bio_start() should use irq-safe operations on blkg->iostat_cpu

c3df5fb57fe8 ("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: 2d146aa3aa84 ("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