Trond Myklebust 3aff4ebb95 NFS: Prevent a deadlock in the new writeback code
We have to unlock the nfs_page before we call nfs_end_page_writeback
to avoid races with functions that expect the page to be unlocked
when PG_locked and PG_writeback are not set.
The problem is that nfs_unlock_request also releases the nfs_page,
causing a deadlock if the release of the nfs_open_context
triggers an iput() while the PG_writeback flag is still set...

The solution is to separate the unlocking and release of the nfs_page,
so that we can do the former before nfs_end_page_writeback and the
latter after.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Fred Isaman <iisaman@netapp.com>
2012-05-09 15:16:07 -04:00
..
2012-04-23 14:23:32 +03:00
2012-03-30 17:31:56 -07:00
2012-04-04 10:09:30 -07:00
2012-03-28 12:34:33 -07:00
2012-04-16 08:35:33 -07:00
2012-03-29 15:38:31 +10:30
2012-04-10 15:30:16 -07:00
2012-03-28 18:30:03 +01:00
2012-04-05 15:30:34 -07:00
2012-04-12 12:57:08 +02:00
2012-03-28 14:08:46 -07:00
2012-03-28 15:58:21 -07:00
2012-03-27 22:45:26 -04:00
2012-04-21 01:58:20 -04:00
2012-04-03 17:23:23 -04:00
2012-03-28 18:30:03 +01:00
2012-03-28 15:58:21 -07:00
2012-03-28 18:30:03 +01:00
2012-04-10 22:39:17 -06:00
2012-04-11 09:36:00 +01:00
2012-03-27 16:30:09 -07:00
2012-03-31 08:09:50 +05:30
2012-03-28 18:30:03 +01:00