Commit 66dbfa1
fs/pipe: remove unnecessary spinlock from pipe_write()
mainline inclusion
from mainline-v6.7-rc1
category: performance
This reverts commit 8df4412 ("pipe: Check for ring full inside of
the spinlock in pipe_write()") which was obsoleted by commit
c73be61 ("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>
(cherry picked from commit dfaabf9)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Change-Id: I321d4c751c752c5e7e2c1a7b817b0e8cc14f1fe51 parent 2c082b8 commit 66dbfa1
1 file changed
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | 515 | | |
524 | | - | |
525 | 516 | | |
526 | 517 | | |
527 | 518 | | |
| |||
0 commit comments