NFS: Ensure we always dereference the page head last
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 18 Jul 2017 23:31:10 +0000 (19:31 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 15 Aug 2017 15:54:46 +0000 (11:54 -0400)
commit08fead2ae5a9953d47677416cc5f6bcae448480d
treeb54fbec7169469205db49b660b2c7ba0e2dad6be
parent1403390d8366c717139cab26b8e94d943915fa12
NFS: Ensure we always dereference the page head last

This fixes a race with nfs_page_group_sync_on_bit() whereby the
call to wake_up_bit() in nfs_page_group_unlock() could occur after
the page header had been freed.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pagelist.c