Merge tag 'vfs-6.10.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[sfrench/cifs-2.6.git] / io_uring / io_uring.c
index c170a2b8d2cf21f06d1c5af8bf57edecb94aaa95..380b9ce1d30144c9a5f7ded984b45d03f90bc813 100644 (file)
@@ -471,7 +471,7 @@ static void io_prep_async_work(struct io_kiocb *req)
 
                /* don't serialize this request if the fs doesn't need it */
                if (should_hash && (req->file->f_flags & O_DIRECT) &&
-                   (req->file->f_mode & FMODE_DIO_PARALLEL_WRITE))
+                   (req->file->f_op->fop_flags & FOP_DIO_PARALLEL_WRITE))
                        should_hash = false;
                if (should_hash || (ctx->flags & IORING_SETUP_IOPOLL))
                        io_wq_hash_work(&req->work, file_inode(req->file));