summaryrefslogtreecommitdiffstats
path: root/fs/io-wq.c
diff options
context:
space:
mode:
authorChristian Brauner <christian.brauner@ubuntu.com>2020-03-08 14:29:17 +0100
committerChristian Brauner <christian.brauner@ubuntu.com>2020-03-09 23:40:05 +0100
commit10dab84caf400f2f5f8b010ebb0c7c4272ec5093 (patch)
treeee081e195b02452ef768bbb26a7154a9f1292210 /fs/io-wq.c
parentpid: Fix error return value in some cases (diff)
downloadlinux-10dab84caf400f2f5f8b010ebb0c7c4272ec5093.tar.xz
linux-10dab84caf400f2f5f8b010ebb0c7c4272ec5093.zip
pid: make ENOMEM return value more obvious
The alloc_pid() codepath used to be simpler. With the introducation of the ability to choose specific pids in 49cb2fc42ce4 ("fork: extend clone3() to support setting a PID") it got more complex. It hasn't been super obvious that ENOMEM is returned when the pid namespace init process/child subreaper of the pid namespace has died. As can be seen from multiple attempts to improve this see e.g. [1] and most recently [2]. We regressed returning ENOMEM in [3] and [2] restored it. Let's add a comment on top explaining that this is historic and documented behavior and cannot easily be changed. [1]: 35f71bc0a09a ("fork: report pid reservation failure properly") [2]: b26ebfe12f34 ("pid: Fix error return value in some cases") [3]: 49cb2fc42ce4 ("fork: extend clone3() to support setting a PID") Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'fs/io-wq.c')
0 files changed, 0 insertions, 0 deletions