OSDN Git Service

io_uring: track mm through current->mm
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 11 Apr 2020 23:05:02 +0000 (02:05 +0300)
committerJens Axboe <axboe@kernel.dk>
Sun, 12 Apr 2020 14:46:30 +0000 (08:46 -0600)
commitbf9c2f1cdcc718b6d2d41172f6ca005fe22cc7ff
tree3cf6b7cd0f583c4f22afd609e5f2776c0997ee02
parentdccc587f6c07ccc734588226fdf62f685558e89f
io_uring: track mm through current->mm

As a preparation for extracting request init bits, remove self-coded mm
tracking from io_submit_sqes(), but rely on current->mm. It's more
convenient, than passing this piece of state in other functions.

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