diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-05-09 09:11:01 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-05-13 06:28:46 -0600 |
commit | 09893e15f1e9910711c152cd126ccfa85581ba83 (patch) | |
tree | d1e536d47db4bd2b9a2dd3a4f0357a59762a736f /fs | |
parent | c30c3e00cbd96f0cce478efba41dbe78dad8c774 (diff) |
io_uring: bump max direct descriptor count to 1M
We currently limit these to 32K, but since we're now backing the table
space with vmalloc when needed, there's no reason why we can't make it
bigger. The total space is limited by RLIMIT_NOFILE as well.
Reviewed-by: Hao Xu <howeyxu@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index dc75c43bc9b2..b75a49d3831b 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -94,7 +94,7 @@ #define IORING_SQPOLL_CAP_ENTRIES_VALUE 8 /* only define max */ -#define IORING_MAX_FIXED_FILES (1U << 15) +#define IORING_MAX_FIXED_FILES (1U << 20) #define IORING_MAX_RESTRICTIONS (IORING_RESTRICTION_LAST + \ IORING_REGISTER_LAST + IORING_OP_LAST) |