io_uring/rw: remove leftover debug statement
authorJens Axboe <axboe@kernel.dk>
Sun, 16 Oct 2022 23:24:10 +0000 (17:24 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 16 Oct 2022 23:24:10 +0000 (17:24 -0600)
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")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rw.c

index 100de2626e4788bd2e5ebdd6ee1c8556a6432b44..bb47cc4da713c3000c39ac755df3e27b6560d9d5 100644 (file)
@@ -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);