]> git.baikalelectronics.ru Git - kernel.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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 2 Aug 2022 20:03:12 +0000 (16:03 -0400)
commit0c7e565ee443326647b6702429daf7d20ce09ca7
tree7627c128af7d54cd5c8fc121e6c2bf05374eefca
parent2ab0c95a958c2928ef11fa0a486369a28a8f9f3b
NFS: nfs_async_write_reschedule_io must not recurse into the writeback code

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>
fs/nfs/write.c