OSDN Git Service

fuse: use READ_ONCE on congestion_threshold and max_background
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 27 Aug 2018 15:29:29 +0000 (18:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Nov 2019 13:43:59 +0000 (14:43 +0100)
commit192d7ef9b2c25577a56da4a7ddca2a4508f2a30c
tree5ee3ec2053a63a4f8fc9ae93ee21527b57aa593a
parentfee1bcaea35a7fa699c91ed8eb8ef6d368a6ac99
fuse: use READ_ONCE on congestion_threshold and max_background

[ Upstream commit 2a23f2b8adbe4bd584f936f7ac17a99750eed9d7 ]

Since they are of unsigned int type, it's allowed to read them
unlocked during reporting to userspace. Let's underline this fact
with READ_ONCE() macroses.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/fuse/control.c