We could support this and prep bundle members early, but let's just
disallow drain with bundles. It is expected that most users of bundles
would use IOSQE_CQE_SKIP_SUCCESS as part of the bundle, and that doesn't
work with IOSQE_IO_DRAIN anyway as it's explicitly disallowed.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
sqe->personality || sqe->splice_fd_in || sqe->file_index ||
sqe->addr3)
return true;
- if (req->flags & REQ_F_FORCE_ASYNC)
+ if (req->flags & (REQ_F_FORCE_ASYNC | REQ_F_IO_DRAIN))
return true;
if (WARN_ON_ONCE(ctx->submit_state.parent))
return true;