/dev/null: add IORING_OP_URING_CMD support
authorPaul Moore <paul@paul-moore.com>
Fri, 19 Aug 2022 20:20:33 +0000 (16:20 -0400)
committerPaul Moore <paul@paul-moore.com>
Fri, 26 Aug 2022 15:19:44 +0000 (11:19 -0400)
commit707527956d90ea4f304188555a97144183af1e49
tree5a860333802cfad5088c30483a9e3e9672fafb64
parentf4d653dcaa4e4056e1630423e6a8ece4869b544f
/dev/null: add IORING_OP_URING_CMD support

This patch adds support for the io_uring command pass through, aka
IORING_OP_URING_CMD, to the /dev/null driver.  As with all of the
/dev/null functionality, the implementation is just a simple sink
where commands go to die, but it should be useful for developers who
need a simple IORING_OP_URING_CMD test device that doesn't require
any special hardware.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Paul Moore <paul@paul-moore.com>
drivers/char/mem.c