Skip to contentSkip to conversation

io_uring/rw: remove leftover debug statement

PATCH New Jens Axboe 1 participant 1 message Oct 16, 2022 io_uring

lore
Share & tools
lore

Jens Axboe

author maintainer
#0 lore raw

PATCH 1/1 io_uring/rw: remove leftover debug statement

This debug statement was never meant to go into the upstream release, kill it off before it ends up in a release. It was just part of the testing for the initial version of the patch.

Fixes 2ec33a6c3cca ("io_uring/rw: ensure kiocb_end_write() is always called")

---

io_uring/rw.c +0 -2
index 100de2626e47..bb47cc4da713 100644
@@ -242,8 +242,6 @@ static void io_req_io_end(struct io_kiocb *req)
 {
 	struct io_rw *rw = io_kiocb_to_cmd(req, struct io_rw);
 
-	WARN_ON(!in_task());
-
 	if (rw->kiocb.ki_flags & IOCB_WRITE) {
 		kiocb_end_write(req);
 		fsnotify_modify(req->file);
Signature · 1 line
Jens Axboe