]> 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)
commit5c82360c80c97a7d1a759052e1d5c4535aa8d6df
treee32857a196c48554c0a1b746410286d4e4e130f0
parent1842539f27ea6b7e24ed03b85bc9a25cb221fbba
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