summaryrefslogtreecommitdiff
path: root/fs/nilfs2/segment.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linuxfoundation.org>2024-02-04 18:25:12 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-23 10:25:14 +0300
commit2441a64070b85c14eecc3728cc87e883f953f265 (patch)
tree3a5ed9d47bc76825b6f48ac48624fe584fa5e451 /fs/nilfs2/segment.c
parentcd1022eaf87be8e6151435bd4df4c242c347e083 (diff)
downloadlinux-2441a64070b85c14eecc3728cc87e883f953f265.tar.xz
sched/membarrier: reduce the ability to hammer on sys_membarrier
commit 944d5fe50f3f03daacfea16300e656a1691c4a23 upstream. On some systems, sys_membarrier can be very expensive, causing overall slowdowns for everything. So put a lock on the path in order to serialize the accesses to prevent the ability for this to be called at too high of a frequency and saturate the machine. Reviewed-and-tested-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Acked-by: Borislav Petkov <bp@alien8.de> Fixes: 22e4ebb97582 ("membarrier: Provide expedited private command") Fixes: c5f58bd58f43 ("membarrier: Provide GLOBAL_EXPEDITED command") Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> [ converted to explicit mutex_*() calls - cleanup.h is not in this stable branch - gregkh ] Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/nilfs2/segment.c')
0 files changed, 0 insertions, 0 deletions