io_uring: Split io_issue_def struct
[linux-2.6-block.git] / io_uring / rw.c
index 02e710e771450fef5359b571c86b3b5fd9681fe3..efe6bfda9ca9d9de697215d29022c31ecf41de40 100644 (file)
@@ -516,7 +516,7 @@ static void io_req_map_rw(struct io_kiocb *req, const struct iovec *iovec,
 static int io_setup_async_rw(struct io_kiocb *req, const struct iovec *iovec,
                             struct io_rw_state *s, bool force)
 {
-       if (!force && !io_issue_defs[req->opcode].prep_async)
+       if (!force && !io_cold_defs[req->opcode].prep_async)
                return 0;
        if (!req_has_async_data(req)) {
                struct io_async_rw *iorw;