IO-Uring Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 1/2] io_uring: remove parameter ctx of io_submit_state_start
@ 2019-12-02  9:14 Jackie Liu
  2019-12-02  9:14 ` [PATCH 2/2] io_uring: remove io_wq_current_is_worker Jackie Liu
  2019-12-03  3:03 ` [PATCH 1/2] io_uring: remove parameter ctx of io_submit_state_start Jens Axboe
  0 siblings, 2 replies; 3+ messages in thread
From: Jackie Liu @ 2019-12-02  9:14 UTC (permalink / raw)
  To: axboe; +Cc: io-uring

From: Jackie Liu <liuyun01@kylinos.cn>

Parameter ctx we have never used, clean it up.

checkpatch.pl said:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

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

diff --git a/fs/io_uring.c b/fs/io_uring.c
index 2c2e8c25da01..9c55af1c1f22 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -3112,7 +3112,7 @@ static void io_submit_state_end(struct io_submit_state *state)
  * Start submission side cache.
  */
 static void io_submit_state_start(struct io_submit_state *state,
-				  struct io_ring_ctx *ctx, unsigned max_ios)
+				  unsigned int max_ios)
 {
 	blk_start_plug(&state->plug);
 	state->free_reqs = 0;
@@ -3196,7 +3196,7 @@ static int io_submit_sqes(struct io_ring_ctx *ctx, unsigned int nr,
 		return -EBUSY;
 
 	if (nr > IO_PLUG_THRESHOLD) {
-		io_submit_state_start(&state, ctx, nr);
+		io_submit_state_start(&state, nr);
 		statep = &state;
 	}
 
-- 
2.17.1




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-02  9:14 [PATCH 1/2] io_uring: remove parameter ctx of io_submit_state_start Jackie Liu
2019-12-02  9:14 ` [PATCH 2/2] io_uring: remove io_wq_current_is_worker Jackie Liu
2019-12-03  3:03 ` [PATCH 1/2] io_uring: remove parameter ctx of io_submit_state_start Jens Axboe

IO-Uring Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/io-uring/0 io-uring/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 io-uring io-uring/ https://lore.kernel.org/io-uring \
		io-uring@vger.kernel.org
	public-inbox-index io-uring

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.io-uring


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git