]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc30644151a4f6c4f29bd97d50abc1f02539f61ee
treeb54fbec7169469205db49b660b2c7ba0e2dad6be
parent56d83049661963675e57b54d56904d5266abb809
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