]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
block: flag block devices as supporting IOCB_WAITQ
authorJens Axboe <axboe@kernel.dk>
Fri, 22 May 2020 15:14:08 +0000 (09:14 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Jun 2020 02:44:25 +0000 (20:44 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c

index 0ae656e022fd57f2288a62613b1750a34ec08443..679d9346b871479ad2f0c5acdaee1a1da1190c8b 100644 (file)
@@ -1851,7 +1851,7 @@ static int blkdev_open(struct inode * inode, struct file * filp)
         */
        filp->f_flags |= O_LARGEFILE;
 
-       filp->f_mode |= FMODE_NOWAIT;
+       filp->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC;
 
        if (filp->f_flags & O_NDELAY)
                filp->f_mode |= FMODE_NDELAY;