Re: [PATCH 4.19] iomap: fix sub-page uptodate handling
From: Greg KH <hidden>
Date: 2021-05-20 08:36:20
Also in:
linux-xfs
From: Greg KH <hidden>
Date: 2021-05-20 08:36:20
Also in:
linux-xfs
On Mon, May 17, 2021 at 05:57:24PM +0100, Matthew Wilcox (Oracle) wrote:
From: Christoph Hellwig <hch@lst.de>
commit 1cea335d1db1ce6ab71b3d2f94a807112b738a0f upstream
bio completions can race when a page spans more than one file system
block. Add a spinlock to synchronize marking the page uptodate.
Fixes: 9dc55f1389f9 ("iomap: add support for sub-pagesize buffered I/O without buffer heads")
Reported-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <redacted>
Reviewed-by: Darrick J. Wong <redacted>
Signed-off-by: Darrick J. Wong <redacted>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
fs/iomap.c | 34 ++++++++++++++++++++++++----------
include/linux/iomap.h | 1 +
2 files changed, 25 insertions(+), 10 deletions(-)Now queued up, thnaks. greg k-h