Unverified Commit 84f20fcc authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!9768 iomap: Don't finish dio under irq when there exists pages

parents 3d1486ef c67e4252
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -180,6 +180,11 @@ static void iomap_dio_bio_end_io(struct bio *bio)
		goto release_bio;
	}

	if ((dio->flags & IOMAP_DIO_INLINE_COMP) && dio->size &&
	    (dio->flags & IOMAP_DIO_WRITE) &&
	    file_inode(iocb->ki_filp)->i_mapping->nrpages)
		dio->flags &= ~IOMAP_DIO_INLINE_COMP;

	/*
	 * Flagged with IOMAP_DIO_INLINE_COMP, we can complete it inline
	 */