summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-07-25io_uring: move fdinfo helpers to its own fileJens Axboe6-208/+230
This also means moving a bit more of the fixed file handling to the filetable side, which makes sense separately too. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: use io_is_uring_fops() consistentlyJens Axboe1-8/+8
Convert the last spots that check for io_uring_fops to use the provided helper instead. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: move SQPOLL related handling into its own fileJens Axboe5-462/+497
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: move timeout opcodes and handling into its own fileJens Axboe6-660/+701
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: move our reference counting into a headerJens Axboe2-42/+49
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: move msg_ring into its own fileJens Axboe4-55/+71
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: split network related opcodes into its own fileJens Axboe5-835/+884
While at it, convert the handlers to just use io_eopnotsupp_prep() if CONFIG_NET isn't set. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: move statx handling to its own fileJens Axboe4-62/+82
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: move epoll handler to its own fileJens Axboe4-50/+70
Would be nice to sort out Kconfig for this and don't even compile epoll.c if we don't have epoll configured. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: add a dummy -EOPNOTSUPP prep handlerJens Axboe1-9/+14
Add it and use it for the epoll handling, if epoll isn't configured. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: move uring_cmd handling to its own fileJens Axboe5-124/+142
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: split out open/close operationsJens Axboe5-298/+345
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: separate out file table handling codeJens Axboe5-93/+117
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: split out fadvise/madvise operationsJens Axboe4-85/+109
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: split out fs related sync/fallocate functionsJens Axboe4-97/+124
This splits out sync_file_range, fsync, and fallocate. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: split out splice related operationsJens Axboe5-130/+154
This splits out splice and tee support. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: split out filesystem related operationsJens Axboe4-283/+316
This splits out renameat, unlinkat, mkdirat, symlinkat, and linkat. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: move nop into its own fileJens Axboe4-15/+32
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: move xattr related opcodes to its own fileJens Axboe4-247/+277
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: handle completions in the coreJens Axboe2-134/+142
Normally request handlers complete requests themselves, if they don't return an error. For the latter case, the core will complete it for them. This is unhandy for pushing opcode handlers further out, as we don't want a bunch of inline completion code and we don't want to make the completion path slower than it is now. Let the core handle any completion, unless the handler explicitly asks us not to. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: set completion results upfrontJens Axboe2-12/+22
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: add io_uring_types.hJens Axboe2-488/+499
This adds definitions of structs that both the core and the various opcode handlers need to know about. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: define a request type cleanup handlerJens Axboe1-69/+86
This can move request type specific cleanup into a private handler, removing the need for the core io_uring parts to know what types they are dealing with. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: unify struct io_symlink and io_hardlinkJens Axboe1-20/+7
They are really just a subset of each other, just use the one type. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert iouring_cmd to io_cmd_typeJens Axboe1-8/+10
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert xattr to use io_cmd_typeJens Axboe1-10/+9
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert rsrc_update to io_cmd_typeJens Axboe1-16/+19
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert msg and nop to io_cmd_typeJens Axboe1-9/+9
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert splice to use io_cmd_typeJens Axboe1-5/+4
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert epoll to io_cmd_typeJens Axboe1-7/+8
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert file system request types to use io_cmd_typeJens Axboe1-45/+57
This converts statx, rename, unlink, mkdir, symlink, and hardlink to use io_cmd_type. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert madvise/fadvise to use io_cmd_typeJens Axboe1-10/+12
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert open/close path to use io_cmd_typeJens Axboe1-32/+40
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert timeout path to use io_cmd_typeJens Axboe1-49/+68
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert cancel path to use io_cmd_typeJens Axboe1-11/+13
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert the sync and fallocate paths to use io_cmd_typeJens Axboe1-19/+24
They all share the same struct io_sync, convert them to use the io_cmd_type approach instead. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert net related opcodes to use io_cmd_typeJens Axboe1-26/+27
This converts accept, connect, send/recv, sendmsg/recvmsg, shutdown, and socket to use io_cmd_type. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: remove recvmsg knowledge from io_arm_poll_handler()Jens Axboe1-2/+6
There's a special case for recvmsg with MSG_ERRQUEUE set. This is problematic as it means the core needs to know about this special request type. For now, just add a generic flag for it. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert poll_update path to use io_cmd_typeJens Axboe1-8/+8
Remove struct io_poll_update from io_kiocb, and convert the poll path to use the io_cmd_type approach instead. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert poll path to use io_cmd_typeJens Axboe1-25/+28
Remove struct io_poll_iocb from io_kiocb, and convert the poll path to use the io_cmd_type approach instead. While at it, rename io_poll_iocb to io_poll which is consistent with the other request type private structures. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: convert read/write path to use io_cmd_typeJens Axboe1-88/+106
Remove struct io_rw from io_kiocb, and convert the read/write path to use the io_cmd_type approach instead. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: add generic command payload type to struct io_kiocbJens Axboe1-4/+17
Each opcode generally has a command structure in io_kiocb which it can use to store data associated with that request. In preparation for having the core layer not know about what's inside these fields, add a generic io_cmd_data type and put in the union as well. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: move req async preparation into opcode handlerJens Axboe1-28/+10
Define an io_op_def->prep_async() handler and push the async preparation to there. Since we now have that, we can drop ->needs_async_setup, as they mean the same thing. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: move to separate directoryJens Axboe8-10/+10
In preparation for splitting io_uring up a bit, move it into its own top level directory. It didn't really belong in fs/ anyway, as it's not a file system only API. This adds io_uring/ and moves the core files in there, and updates the MAINTAINERS file for the new location. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-25io_uring: define a 'prep' and 'issue' handler for each opcodeJens Axboe1-458/+350
Rather than have two giant switches for doing request preparation and then for doing request issue, add a prep and issue handler for each of them in the io_op_defs[] request definition. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-24Linux 5.19-rc8v5.19-rc8Linus Torvalds1-1/+1
2022-07-24certs: make system keyring depend on x509 parserAdam Borowski1-0/+1
This code requires x509_load_certificate_list() to be built-in. Fixes: 60050ffe3d77 ("certs: Move load_certificate_list() to be with the asymmetric keys code") Reported-by: kernel test robot <lkp@intel.com> Reported-by: Steven Rostedt <rostedt@goodmis.org> Link: https://lore.kernel.org/all/202206221515.DqpUuvbQ-lkp@intel.com/ Link: https://lore.kernel.org/all/20220712104554.408dbf42@gandalf.local.home/ Signed-off-by: Adam Borowski <kilobyte@angband.pl> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-07-24Merge tag 'perf_urgent_for_v5.19_rc8' of ↵Linus Torvalds1-9/+10
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip Pull perf fix from Borislav Petkov: - Reorganize the perf LBR init code so that a TSX quirk is applied early enough in order for the LBR MSR access to not #GP * tag 'perf_urgent_for_v5.19_rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: perf/x86/intel/lbr: Fix unchecked MSR access error on HSW
2022-07-24Merge tag 'sched_urgent_for_v5.19_rc8' of ↵Linus Torvalds1-1/+4
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip Pull scheduler fix from Borislav Petkov: "A single fix to correct a wrong BUG_ON() condition for deboosted tasks" * tag 'sched_urgent_for_v5.19_rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: sched/deadline: Fix BUG_ON condition for deboosted tasks
2022-07-24Merge tag 'x86_urgent_for_v5.19_rc8' of ↵Linus Torvalds8-12/+36
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip Pull x86 fixes from Borislav Petkov: "A couple more retbleed fallout fixes. It looks like their urgency is decreasing so it seems like we've managed to catch whatever snafus the limited -rc testing has exposed. Maybe we're getting ready... :) - Make retbleed mitigations 64-bit only (32-bit will need a bit more work if even needed, at all). - Prevent return thunks patching of the LKDTM modules as it is not needed there - Avoid writing the SPEC_CTRL MSR on every kernel entry on eIBRS parts - Enhance error output of apply_returns() when it fails to patch a return thunk - A sparse fix to the sev-guest module - Protect EFI fw calls by issuing an IBPB on AMD" * tag 'x86_urgent_for_v5.19_rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/speculation: Make all RETbleed mitigations 64-bit only lkdtm: Disable return thunks in rodata.c x86/bugs: Warn when "ibrs" mitigation is selected on Enhanced IBRS parts x86/alternative: Report missing return thunk details virt: sev-guest: Pass the appropriate argument type to iounmap() x86/amd: Use IBPB for firmware calls