diff options
author | Hou Tao <houtao1@huawei.com> | 2024-05-09 20:21:53 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-12 11:39:21 +0200 |
commit | a0c290ddc20f846c89d2470828e65b01afaf685c (patch) | |
tree | e0ed1994e1307dc3ffbd7e58ee63d47134d8dca1 /tools/perf/util/python.c | |
parent | 5268241b41b1c5d0acca75e9b97d4fd719251c8c (diff) |
fuse: set FR_PENDING atomically in fuse_resend()
[ Upstream commit 42815f8ac54c5113bf450ec4b7ccc5b62af0f6a7 ]
When fuse_resend() moves the requests from processing lists to pending
list, it uses __set_bit() to set FR_PENDING bit in req->flags.
Using __set_bit() is not safe, because other functions may update
req->flags concurrently (e.g., request_wait_answer() may call
set_bit(FR_INTERRUPTED, &flags)).
Fix it by using set_bit() instead.
Fixes: 760eac73f9f6 ("fuse: Introduce a new notification type for resend pending requests")
Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions