]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: nfs_async_write_reschedule_io must not recurse into the writeback code
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 1 Aug 2022 18:16:51 +0000 (14:16 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:50:38 +0000 (19:50 +0100)
commit31545f4b7cdb6da6a0519120b8c96dc40f186aac
treebe3b6cd894fe4657409d5525c2452e36ed93a69d
parent44f48eb9a6051826227bbd375446064fb2a43c6c
NFS: nfs_async_write_reschedule_io must not recurse into the writeback code

commit b1a28f2eb9ea7a5a1763fe53fe699aa0feae4231 upstream.

It is not safe to call filemap_fdatawrite_range() from
nfs_async_write_reschedule_io(), since we're often calling from a page
reclaim context. Just let fsync() redrive the writeback for us.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/write.c