Skip to content
Commit 61e930a9 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Fix a writeback race...

This patch fixes a regression that was introduced by commit
44dd151d



We cannot zero the user page in nfs_mark_uptodate() any more, since

  a) We'd be modifying the page without holding the page lock
  b) We can race with other updates of the page, most notably
     because of the call to nfs_wb_page() in nfs_writepage_setup().

Instead, we do the zeroing in nfs_update_request() if we see that we're
creating a request that might potentially be marked as up to date.

Thanks to Olivier Paquet for reporting the bug and providing a test-case.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 4fa4d23f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment