mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
fs/pipe: remove unnecessary spinlock from pipe_write()
This reverts commit8df441294d("pipe: Check for ring full inside of the spinlock in pipe_write()") which was obsoleted by commitc73be61ced("pipe: Add general notification queue support") because now pipe_write() fails early with -EXDEV if there is a watch_queue. Without a watch_queue, no notifications can be posted to the pipe and mutex protection is enough, as can be seen in splice_pipe_to_pipe() which does not use the spinlock either. Signed-off-by: Max Kellermann <max.kellermann@ionos.com> Message-Id: <20230921075755.1378787-3-max.kellermann@ionos.com> Reviewed-by: David Howells <dhowells@redhat.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
b4bd6b4bac
commit
dfaabf916b
1 changed files with 0 additions and 9 deletions
Loading…
Add table
Add a link
Reference in a new issue