nfs: fix race in nfs_dirty_request
authorFred Isaman <iisaman@citi.umich.edu>
Thu, 1 May 2008 17:03:22 +0000 (20:03 +0300)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 16 May 2008 16:43:23 +0000 (09:43 -0700)
commit38def50fabc479dc96ea6bd2cb2526e0dfc36fa4
treec7327131526e59b35f639af91dbea3075b20445e
parentb0b539739fe9b7d75002412a787cfdf4efddbc33
nfs: fix race in nfs_dirty_request

When called from nfs_flush_incompatible, the req is not locked, so
req->wb_page might be set to NULL before it is used by PageWriteback.

Signed-off-by: Fred Isaman <iisaman@citi.umich.edu>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/write.c