]> git.baikalelectronics.ru Git - kernel.git/commit
FS-Cache: Permit cache retrieval ops to be interrupted in the initial wait phase
authorDavid Howells <dhowells@redhat.com>
Thu, 19 Nov 2009 18:11:19 +0000 (18:11 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 19 Nov 2009 18:11:19 +0000 (18:11 +0000)
commit4e646ce4a6564d7936af7f21a3ac4f4a4dfe8f1e
tree55a0de053d0593d96e99710f978277df668412d1
parent6faa860e5f5b4f2630e45e56b6a92bc4ed75ac34
FS-Cache: Permit cache retrieval ops to be interrupted in the initial wait phase

Permit the operations to retrieve data from the cache or to allocate space in
the cache for future writes to be interrupted whilst they're waiting for
permission for the operation to proceed.  Typically this wait occurs whilst the
cache object is being looked up on disk in the background.

If an interruption occurs, and the operation has not yet been given the
go-ahead to run, the operation is dequeued and cancelled, and control returns
to the read operation of the netfs routine with none of the requested pages
having been read or in any way marked as known by the cache.

This means that the initial wait is done interruptibly rather than
uninterruptibly.

In addition, extra stats values are made available to show the number of ops
cancelled and the number of cache space allocations interrupted.

Signed-off-by: David Howells <dhowells@redhat.com>
Documentation/filesystems/caching/fscache.txt
fs/fscache/internal.h
fs/fscache/operation.c
fs/fscache/page.c
fs/fscache/stats.c