io_uring: don't keep submit_state on stack
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 10 Feb 2021 00:03:10 +0000 (00:03 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Feb 2021 14:28:42 +0000 (07:28 -0700)
commit258b29a93bfe74a57c01e1b10b698d5b62e173fe
treeba63e7229b17766384b8c759792271bb2dbe5385
parent889fca73287b0ae21c9d8712379c9ae5a3b27d08
io_uring: don't keep submit_state on stack

struct io_submit_state is quite big (168 bytes) and going to grow. It's
better to not keep it on stack as it is now. Move it to context, it's
always protected by uring_lock, so it's fine to have only one instance
of it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c