All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] io_uring: remove the variable tmin that is not useful
@ 2019-07-30  7:46 Jackie Liu
  0 siblings, 0 replies; only message in thread
From: Jackie Liu @ 2019-07-30  7:46 UTC (permalink / raw)
  To: axboe; +Cc: linux-block, Jackie Liu

*nr_events is always equal to 0, tmin has no meaning.

Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
---
 fs/io_uring.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/fs/io_uring.c b/fs/io_uring.c
index 012bc0e..4204a53 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -808,12 +808,7 @@ static int io_iopoll_check(struct io_ring_ctx *ctx, unsigned *nr_events,
 	int ret = 0;
 
 	do {
-		int tmin = 0;
-
-		if (*nr_events < min)
-			tmin = min - *nr_events;
-
-		ret = io_iopoll_getevents(ctx, nr_events, tmin);
+		ret = io_iopoll_getevents(ctx, nr_events, min);
 		if (ret <= 0)
 			break;
 		ret = 0;
-- 
2.7.4




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-30  7:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-30  7:46 [PATCH] io_uring: remove the variable tmin that is not useful Jackie Liu

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.