io_uring: add support for shutdown(2)
authorJens Axboe <axboe@kernel.dk>
Sat, 5 Sep 2020 17:14:22 +0000 (11:14 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 5 Sep 2020 22:50:40 +0000 (16:50 -0600)
commit4e176adec0320596ed2ee54f95878788af2afcc1
treec17093877f44506aaa1f35e30572011e677a0f8b
parentf6759ade111821dfc1371b293f4f062fb8d71f74
io_uring: add support for shutdown(2)

This adds support for the shutdown(2) system call, which is useful for
dealing with sockets.

shutdown(2) may block, so we have to punt it to async context.

Suggested-by: Norman Maurer <norman.maurer@googlemail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h