]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: support using a registered personality for commands
authorJens Axboe <axboe@kernel.dk>
Tue, 28 Jan 2020 17:15:23 +0000 (10:15 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 29 Jan 2020 00:45:31 +0000 (17:45 -0700)
commitb4c093ebd7a52e5449460bf45ea0edbdbd5daa84
treee32857a196c48554c0a1b746410286d4e4e130f0
parenta19602a88d7ec6bada024372dc0e99e171026a04
io_uring: support using a registered personality for commands

For personalities previously registered via IORING_REGISTER_PERSONALITY,
allow any command to select them. This is done through setting
sqe->personality to the id returned from registration, and then flagging
sqe->flags with IOSQE_PERSONALITY.

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