• David Howells's avatar
    FS-Cache: Handle read request vs lookup, creation or other cache failure · e3d4d28b
    David Howells authored
    FS-Cache doesn't correctly handle the netfs requesting a read from the cache
    on an object that failed or was withdrawn by the cache.  A trace similar to
    the following might be seen:
    
    	CacheFiles: Lookup failed error -105
    	[exe   ] unexpected submission OP165afe [OBJ6cac OBJECT_LC_DYING]
    	[exe   ] objstate=OBJECT_LC_DYING [OBJECT_LC_DYING]
    	[exe   ] objflags=0
    	[exe   ] objevent=9 [fffffffffffffffb]
    	[exe   ] ops=0 inp=0 exc=0
    	Pid: 6970, comm: exe Not tainted 2.6.32-rc6-cachefs #50
    	Call Trace:
    	 [<ffffffffa0076477>] fscache_submit_op+0x3ff/0x45a [fscache]
    	 [<ffffffffa0077997>] __fscache_read_or_alloc_pages+0x187/0x3c4 [fscache]
    	 [<ffffffffa00b6480>] ? nfs_readpage_from_fscache_complete+0x0/0x66 [nfs]
    	 [<ffffffffa00b6388>] __nfs_readpages_from_fscache+0x7e/0x176 [nfs]
    	 [<ffffffff8108e483>] ? __alloc_pages_nodemask+0x11c/0x5cf
    	 [<ffffffffa009d796>] nfs_readpages+0x114/0x1d7 [nfs]
    	 [<ffffffff81090314>] __do_page_cache_readahead+0...
    e3d4d28b
operation.c 13.2 KB