diff options
author | David Howells <dhowells@redhat.com> | 2009-11-19 13:11:19 -0500 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2009-11-19 13:11:19 -0500 |
commit | 5753c441889253e4323eee85f791a1d64cf08196 (patch) | |
tree | 55a0de053d0593d96e99710f978277df668412d1 /Documentation | |
parent | b34df792b4e9e311db47fad27949095d0629c197 (diff) |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/filesystems/caching/fscache.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/filesystems/caching/fscache.txt b/Documentation/filesystems/caching/fscache.txt index b6c32c080ab1..0a77868f4977 100644 --- a/Documentation/filesystems/caching/fscache.txt +++ b/Documentation/filesystems/caching/fscache.txt | |||
@@ -250,6 +250,7 @@ proc files. | |||
250 | ok=N Number of successful alloc reqs | 250 | ok=N Number of successful alloc reqs |
251 | wt=N Number of alloc reqs that waited on lookup completion | 251 | wt=N Number of alloc reqs that waited on lookup completion |
252 | nbf=N Number of alloc reqs rejected -ENOBUFS | 252 | nbf=N Number of alloc reqs rejected -ENOBUFS |
253 | int=N Number of alloc reqs aborted -ERESTARTSYS | ||
253 | ops=N Number of alloc reqs submitted | 254 | ops=N Number of alloc reqs submitted |
254 | owt=N Number of alloc reqs waited for CPU time | 255 | owt=N Number of alloc reqs waited for CPU time |
255 | Retrvls n=N Number of retrieval (read) requests seen | 256 | Retrvls n=N Number of retrieval (read) requests seen |
@@ -271,6 +272,7 @@ proc files. | |||
271 | Ops pend=N Number of times async ops added to pending queues | 272 | Ops pend=N Number of times async ops added to pending queues |
272 | run=N Number of times async ops given CPU time | 273 | run=N Number of times async ops given CPU time |
273 | enq=N Number of times async ops queued for processing | 274 | enq=N Number of times async ops queued for processing |
275 | can=N Number of async ops cancelled | ||
274 | dfr=N Number of async ops queued for deferred release | 276 | dfr=N Number of async ops queued for deferred release |
275 | rel=N Number of async ops released | 277 | rel=N Number of async ops released |
276 | gc=N Number of deferred-release async ops garbage collected | 278 | gc=N Number of deferred-release async ops garbage collected |