aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorLukas Schauer <[email protected]>2023-12-01 11:11:28 +0100
committerChristian Brauner <[email protected]>2023-12-12 14:24:54 +0100
commite95aada4cb93d42e25c30a0ef9eb2923d9711d4a (patch)
tree5c8f7f49d6d6ce84d88d4f6da4996ab582369356 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent055ca83559912f2cfd91c9441427bac4caf3c74e (diff)
pipe: wakeup wr_wait after setting max_usage
Commit c73be61cede5 ("pipe: Add general notification queue support") a regression was introduced that would lock up resized pipes under certain conditions. See the reproducer in [1]. The commit resizing the pipe ring size was moved to a different function, doing that moved the wakeup for pipe->wr_wait before actually raising pipe->max_usage. If a pipe was full before the resize occured it would result in the wakeup never actually triggering pipe_write. Set @max_usage and @nr_accounted before waking writers if this isn't a watch queue. Link: https://bugzilla.kernel.org/show_bug.cgi?id=212295 [1] Link: https://lore.kernel.org/r/20231201-orchideen-modewelt-e009de4562c6@brauner Fixes: c73be61cede5 ("pipe: Add general notification queue support") Reviewed-by: David Howells <[email protected]> Cc: <[email protected]> Signed-off-by: Lukas Schauer <[email protected]> [Christian Brauner <[email protected]>: rewrite to account for watch queues] Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions