Skip to content

Commit 73e08e7

Browse files
committed
Revert "io_uring: only allow submit from owning task"
This ends up being too restrictive for tasks that willingly fork and share the ring between forks. Andres reports that this breaks his postgresql work. Since we're close to 5.5 release, revert this change for now. Cc: [email protected] Fixes: 44d2827 ("io_uring: only allow submit from owning task") Reported-by: Andres Freund <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 1292e97 commit 73e08e7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

fs/io_uring.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5161,12 +5161,6 @@ SYSCALL_DEFINE6(io_uring_enter, unsigned int, fd, u32, to_submit,
51615161
} else if (to_submit) {
51625162
struct mm_struct *cur_mm;
51635163

5164-
if (current->mm != ctx->sqo_mm ||
5165-
current_cred() != ctx->creds) {
5166-
ret = -EPERM;
5167-
goto out;
5168-
}
5169-
51705164
to_submit = min(to_submit, ctx->sq_entries);
51715165
mutex_lock(&ctx->uring_lock);
51725166
/* already have mm, so io_submit_sqes() won't try to grab it */

0 commit comments

Comments
 (0)