mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-17 22:23:45 -04:00
fs, iomap: remove IOCB_DIO_CALLER_COMP
This was added by commit099ada2c87("io_uring/rw: add write support for IOCB_DIO_CALLER_COMP") and disabled a little later by commit838b35bb6a("io_uring/rw: disable IOCB_DIO_CALLER_COMP") because it didn't work. Remove all the related code that sat unused for 2 years. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://patch.msgid.link/20251113170633.1453259-2-hch@lst.de Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
committed by
Christian Brauner
parent
f53d302ee8
commit
f9f8514999
@@ -367,23 +367,9 @@ struct readahead_control;
|
||||
#define IOCB_NOIO (1 << 20)
|
||||
/* can use bio alloc cache */
|
||||
#define IOCB_ALLOC_CACHE (1 << 21)
|
||||
/*
|
||||
* IOCB_DIO_CALLER_COMP can be set by the iocb owner, to indicate that the
|
||||
* iocb completion can be passed back to the owner for execution from a safe
|
||||
* context rather than needing to be punted through a workqueue. If this
|
||||
* flag is set, the bio completion handling may set iocb->dio_complete to a
|
||||
* handler function and iocb->private to context information for that handler.
|
||||
* The issuer should call the handler with that context information from task
|
||||
* context to complete the processing of the iocb. Note that while this
|
||||
* provides a task context for the dio_complete() callback, it should only be
|
||||
* used on the completion side for non-IO generating completions. It's fine to
|
||||
* call blocking functions from this callback, but they should not wait for
|
||||
* unrelated IO (like cache flushing, new IO generation, etc).
|
||||
*/
|
||||
#define IOCB_DIO_CALLER_COMP (1 << 22)
|
||||
/* kiocb is a read or write operation submitted by fs/aio.c. */
|
||||
#define IOCB_AIO_RW (1 << 23)
|
||||
#define IOCB_HAS_METADATA (1 << 24)
|
||||
#define IOCB_AIO_RW (1 << 22)
|
||||
#define IOCB_HAS_METADATA (1 << 23)
|
||||
|
||||
/* for use in trace events */
|
||||
#define TRACE_IOCB_STRINGS \
|
||||
@@ -400,7 +386,6 @@ struct readahead_control;
|
||||
{ IOCB_WAITQ, "WAITQ" }, \
|
||||
{ IOCB_NOIO, "NOIO" }, \
|
||||
{ IOCB_ALLOC_CACHE, "ALLOC_CACHE" }, \
|
||||
{ IOCB_DIO_CALLER_COMP, "CALLER_COMP" }, \
|
||||
{ IOCB_AIO_RW, "AIO_RW" }, \
|
||||
{ IOCB_HAS_METADATA, "AIO_HAS_METADATA" }
|
||||
|
||||
@@ -412,23 +397,13 @@ struct kiocb {
|
||||
int ki_flags;
|
||||
u16 ki_ioprio; /* See linux/ioprio.h */
|
||||
u8 ki_write_stream;
|
||||
union {
|
||||
/*
|
||||
* Only used for async buffered reads, where it denotes the
|
||||
* page waitqueue associated with completing the read. Valid
|
||||
* IFF IOCB_WAITQ is set.
|
||||
*/
|
||||
struct wait_page_queue *ki_waitq;
|
||||
/*
|
||||
* Can be used for O_DIRECT IO, where the completion handling
|
||||
* is punted back to the issuer of the IO. May only be set
|
||||
* if IOCB_DIO_CALLER_COMP is set by the issuer, and the issuer
|
||||
* must then check for presence of this handler when ki_complete
|
||||
* is invoked. The data passed in to this handler must be
|
||||
* assigned to ->private when dio_complete is assigned.
|
||||
*/
|
||||
ssize_t (*dio_complete)(void *data);
|
||||
};
|
||||
|
||||
/*
|
||||
* Only used for async buffered reads, where it denotes the page
|
||||
* waitqueue associated with completing the read.
|
||||
* Valid IFF IOCB_WAITQ is set.
|
||||
*/
|
||||
struct wait_page_queue *ki_waitq;
|
||||
};
|
||||
|
||||
static inline bool is_sync_kiocb(struct kiocb *kiocb)
|
||||
|
||||
Reference in New Issue
Block a user