summaryrefslogtreecommitdiffstats
path: root/lib/ucmpdi2.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-06-15 10:33:13 +0300
committerJens Axboe <axboe@kernel.dk>2020-06-15 08:51:35 -0600
commit4dd2824d6d5914949b5fe589538bc2622d84c5dd (patch)
tree679decb480c4e352ae5387ce87d0ffdd2395db88 /lib/ucmpdi2.c
parent67c4d9e693e3bb7fb968af24e3584f821a78ba56 (diff)
downloadlinux-4dd2824d6d5914949b5fe589538bc2622d84c5dd.tar.gz
linux-4dd2824d6d5914949b5fe589538bc2622d84c5dd.tar.bz2
linux-4dd2824d6d5914949b5fe589538bc2622d84c5dd.zip
io_uring: lazy get task
There will be multiple places where req->task is used, so refcount-pin it lazily with introduced *io_{get,put}_req_task(). We need to always have valid ->task for cancellation reasons, but don't care about pinning it in some cases. That's why it sets req->task in io_req_init() and implements get/put laziness with a flag. This also removes using @current from polling io_arm_poll_handler(), etc., but doesn't change observable behaviour. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/ucmpdi2.c')
0 files changed, 0 insertions, 0 deletions