• David Howells's avatar
    FS-Cache: Handle pages pending storage that get evicted under OOM conditions · 201a1542
    David Howells authored
    Handle netfs pages that the vmscan algorithm wants to evict from the pagecache
    under OOM conditions, but that are waiting for write to the cache.  Under these
    conditions, vmscan calls the releasepage() function of the netfs, asking if a
    page can be discarded.
    
    The problem is typified by the following trace of a stuck process:
    
    	kslowd005     D 0000000000000000     0  4253      2 0x00000080
    	 ffff88001b14f370 0000000000000046 ffff880020d0d000 0000000000000007
    	 0000000000000006 0000000000000001 ffff88001b14ffd8 ffff880020d0d2a8
    	 000000000000ddf0 00000000000118c0 00000000000118c0 ffff880020d0d2a8
    	Call Trace:
    	 [<ffffffffa00782d8>] __fscache_wait_on_page_write+0x8b/0xa7 [fscache]
    	 [<ffffffff8104c0f1>] ? autoremove_wake_function+0x0/0x34
    	 [<ffffffffa0078240>] ? __fscache_check_page_write+0x63/0x70 [fscache]
    	 [<ffffffffa00b671d>] nfs_fscache_release_page+0x4e/0xc4 [nfs]
    	 [<ffffffffa00927f0>] nfs_release_page+0x3c/0x41 [nfs]
    	 [<...
    201a1542
netfs-api.txt 28.3 KB