diff --git a/fs/io_uring.c b/fs/io_uring.c index d91dd65e9fbd4d3bf10c0b2c3c5b58e512cb880a..b3c680bc36939d31454fc20ef36de355f4b6badc 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -3694,7 +3694,7 @@ static int io_submit_sqes(struct io_ring_ctx *ctx, unsigned int nr, * If previous wasn't linked and we have a linked command, * that's the end of the chain. Submit the previous link. */ - if (!(sqe_flags & IOSQE_IO_LINK) && link) { + if (!(sqe_flags & (IOSQE_IO_LINK|IOSQE_IO_HARDLINK)) && link) { io_queue_link_head(link); link = NULL; }