OSDN Git Service

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)
commit75c6a03904e0dd414a4d99a3072075cb5117e5bc
treee32857a196c48554c0a1b746410286d4e4e130f0
parent071698e13ac6ba786dfa22349a7b62deb5a9464d
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