]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad5add37b08c977fce7019b094381b81a99ef06b
treeba63e7229b17766384b8c759792271bb2dbe5385
parent6de11fca90586faa330c07b1a595d2063ef1af56
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