]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs/pipe: write to ->poll_usage only once
authorMateusz Guzik <mjguzik@gmail.com>
Sat, 16 May 2026 02:18:52 +0000 (04:18 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 21 May 2026 11:39:36 +0000 (13:39 +0200)
commit7dc6acb3d56bc2c5d119c86abd8fe96034084fc8
tree3e58dea963d36e82e3e73961aa8ce46e53546d3a
parent50d377ef12d9680ff8fd0923afc7edaf63995511
fs/pipe: write to ->poll_usage only once

Both GNU and BSD makes share a "token pipe" between their instances, as
a result a -j $BIGNUM invocation results in multicore perf problems in
the poll handler.

Avoiding the store will reduce it a little bit. However, the crux of the
problem is the locked queuing up in poll_wait().

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://patch.msgid.link/20260516021852.256932-1-mjguzik@gmail.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
fs/pipe.c