aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/device.py
diff options
context:
space:
mode:
authorHou Tao <houtao1@huawei.com>2024-05-09 20:21:53 +0800
committerMiklos Szeredi <mszeredi@redhat.com>2024-05-10 11:10:12 +0200
commit42815f8ac54c5113bf450ec4b7ccc5b62af0f6a7 (patch)
tree8df8c33c284abaf45f9ac976cacd4171b55c49ce /scripts/gdb/linux/device.py
parent9fe2a036a23ceeac402c4fde8ec37c02ab25f133 (diff)
fuse: set FR_PENDING atomically in fuse_resend()
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>
Diffstat (limited to 'scripts/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions