Skip to content

Commit

Permalink
io_uring: move to separate directory
Browse files Browse the repository at this point in the history
[ Upstream commit ed29b0b ]

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 <[email protected]>
Stable-dep-of: 998b30c ("io_uring: Fix a null-ptr-deref in io_tctx_exit_cb()")
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
axboe authored and gregkh committed Dec 14, 2022
1 parent d9e1e5d commit f435c66
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
7 changes: 1 addition & 6 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -7244,9 +7244,6 @@ F: include/linux/fs.h
F: include/linux/fs_types.h
F: include/uapi/linux/fs.h
F: include/uapi/linux/openat2.h
X: fs/io-wq.c
X: fs/io-wq.h
X: fs/io_uring.c

FINTEK F75375S HARDWARE MONITOR AND FAN CONTROLLER DRIVER
M: Riku Voipio <[email protected]>
Expand Down Expand Up @@ -9818,9 +9815,7 @@ L: [email protected]
S: Maintained
T: git git://git.kernel.dk/linux-block
T: git git://git.kernel.dk/liburing
F: fs/io-wq.c
F: fs/io-wq.h
F: fs/io_uring.c
F: io_uring/
F: include/linux/io_uring.h
F: include/uapi/linux/io_uring.h
F: tools/io_uring/
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,7 @@ export MODULES_NSDEPS := $(extmod_prefix)modules.nsdeps
ifeq ($(KBUILD_EXTMOD),)
core-y += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/
core-$(CONFIG_BLOCK) += block/
core-$(CONFIG_IO_URING) += io_uring/

vmlinux-dirs := $(patsubst %/,%,$(filter %/, \
$(core-y) $(core-m) $(drivers-y) $(drivers-m) \
Expand Down
2 changes: 0 additions & 2 deletions fs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ obj-$(CONFIG_TIMERFD) += timerfd.o
obj-$(CONFIG_EVENTFD) += eventfd.o
obj-$(CONFIG_USERFAULTFD) += userfaultfd.o
obj-$(CONFIG_AIO) += aio.o
obj-$(CONFIG_IO_URING) += io_uring.o
obj-$(CONFIG_IO_WQ) += io-wq.o
obj-$(CONFIG_FS_DAX) += dax.o
obj-$(CONFIG_FS_ENCRYPTION) += crypto/
obj-$(CONFIG_FS_VERITY) += verity/
Expand Down
6 changes: 6 additions & 0 deletions io_uring/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
#
# Makefile for io_uring

obj-$(CONFIG_IO_URING) += io_uring.o
obj-$(CONFIG_IO_WQ) += io-wq.o
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion fs/io_uring.c → io_uring/io_uring.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

#include <uapi/linux/io_uring.h>

#include "internal.h"
#include "../fs/internal.h"
#include "io-wq.h"

#define IORING_MAX_ENTRIES 32768
Expand Down
2 changes: 1 addition & 1 deletion kernel/sched/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <asm/tlb.h>

#include "../workqueue_internal.h"
#include "../../fs/io-wq.h"
#include "../../io_uring/io-wq.h"
#include "../smpboot.h"

#include "pelt.h"
Expand Down

0 comments on commit f435c66

Please sign in to comment.