]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.2: Always flush out writes in nfs42_proc_fallocate()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 28 Mar 2021 22:17:14 +0000 (18:17 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 12 Apr 2021 21:14:17 +0000 (17:14 -0400)
commit9b8c8d0ffea9427ac870108f73c9e2206d0cdafb
tree8e9b01ed0be17ffddd023c1d66408027b953c676
parent2db9f1074e8716c2f58551dcf0488049209300d0
NFSv4.2: Always flush out writes in nfs42_proc_fallocate()

Whether we're allocating or delallocating space, we should flush out the
pending writes in order to avoid races with attribute updates.

Fixes: 4d56e3d70e39 ("NFSv4.2: Fix a race in nfs42_proc_deallocate()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs42proc.c