NFS: Ensure that nfs_wb_page() waits for Pg_writeback to clear
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 27 Apr 2010 22:33:54 +0000 (18:33 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 27 Apr 2010 22:33:54 +0000 (18:33 -0400)
commitba8b06e67ed7a560b0e7c80091bcadda4f4727a5
treecd737661ffb38a614697b1e055d68e7b41a7e982
parent71d0a6112a363e703e383ae5b12c492485c39701
NFS: Ensure that nfs_wb_page() waits for Pg_writeback to clear

Neil Brown reports that he is seeing the BUG_ON(ret == 0) trigger in
nfs_page_async_flush. According to the trace in
     https://bugzilla.novell.com/show_bug.cgi?id=599628
the problem appears to be due to nfs_wb_page() not waiting for the
PG_writeback flag to clear.

There is a ditto problem in nfs_wb_page_cancel()

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/write.c