* [PATCH] io_uring: drop redundant IO_MODE_OFFLOAD check
@ 2021-06-10 15:55 Stefan Hajnoczi
2021-06-10 22:40 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Hajnoczi @ 2021-06-10 15:55 UTC (permalink / raw)
To: fio; +Cc: axboe, Stefan Hajnoczi
check_engine_ops() already returns an error if io_submit_mode is
IO_MODE_OFFLOAD and the engine is marked FIO_NO_OFFLOAD.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
engines/io_uring.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/engines/io_uring.c b/engines/io_uring.c
index b962e804..9c091e37 100644
--- a/engines/io_uring.c
+++ b/engines/io_uring.c
@@ -728,12 +728,6 @@ static int fio_ioring_init(struct thread_data *td)
struct ioring_data *ld;
struct thread_options *to = &td->o;
- if (to->io_submit_mode == IO_MODE_OFFLOAD) {
- log_err("fio: io_submit_mode=offload is not compatible (or "
- "useful) with io_uring\n");
- return 1;
- }
-
/* sqthread submission requires registered files */
if (o->sqpoll_thread)
o->registerfiles = 1;
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] io_uring: drop redundant IO_MODE_OFFLOAD check
2021-06-10 15:55 [PATCH] io_uring: drop redundant IO_MODE_OFFLOAD check Stefan Hajnoczi
@ 2021-06-10 22:40 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2021-06-10 22:40 UTC (permalink / raw)
To: Stefan Hajnoczi, fio
On 6/10/21 9:55 AM, Stefan Hajnoczi wrote:
> check_engine_ops() already returns an error if io_submit_mode is
> IO_MODE_OFFLOAD and the engine is marked FIO_NO_OFFLOAD.
Applied, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-10 22:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10 15:55 [PATCH] io_uring: drop redundant IO_MODE_OFFLOAD check Stefan Hajnoczi
2021-06-10 22:40 ` Jens Axboe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.