io_uring: support using a registered personality for commands for-5.6/io_uring-vfs-creds
authorJens Axboe <axboe@kernel.dk>
Tue, 28 Jan 2020 17:15:23 +0000 (10:15 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Jan 2020 19:34:55 +0000 (12:34 -0700)
commitae6bb8ad15feed85849a3e73b85689fe69985e1e
tree2688dd14217456b2e336bbccce6913678922faad
parentf636a8b59574ae2784f8f2828564d80aac0daf6a
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.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h