]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - fs/direct-io.c
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfashe...
[mirror_ubuntu-focal-kernel.git] / fs / direct-io.c
index 8593f3dfd2990a013b6fd580e22e1e82b83d4fbf..52bb2638f7ab703e9a3d5205b097ddbf90a071e2 100644 (file)
@@ -1106,7 +1106,7 @@ direct_io_worker(int rw, struct kiocb *iocb, struct inode *inode,
        spin_lock_irqsave(&dio->bio_lock, flags);
        ret2 = --dio->refcount;
        spin_unlock_irqrestore(&dio->bio_lock, flags);
-       BUG_ON(!dio->is_async && ret2 != 0);
+
        if (ret2 == 0) {
                ret = dio_complete(dio, offset, ret);
                kfree(dio);