Re: [PATCH 06/19] nfsd: set PF_FSTRANS for nfsd threads.

2014-04-16 Thread Peter Zijlstra
On Wed, Apr 16, 2014 at 02:03:36PM +1000, NeilBrown wrote: > If a localhost mount is present, then it is easy to deadlock NFS by > nfsd entering direct reclaim and calling nfs_release_page() which > requires nfsd to perform an fsync() (which it cannot do because it is > reclaiming memory). > > By

[PATCH 06/19] nfsd: set PF_FSTRANS for nfsd threads.

2014-04-15 Thread NeilBrown
If a localhost mount is present, then it is easy to deadlock NFS by nfsd entering direct reclaim and calling nfs_release_page() which requires nfsd to perform an fsync() (which it cannot do because it is reclaiming memory). By setting PF_FSTRANS we stop the memory allocator from ever attempting an