summaryrefslogtreecommitdiffstats
path: root/firmware/3com
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-02-25 15:22:40 +0100
committerDavid Howells <dhowells@redhat.com>2015-04-02 15:28:53 +0200
commita39caadf06879017cb9a8c5c5cb4fc4ccb213275 (patch)
treea558a3886da28ae502a271ce8597b1860e65594b /firmware/3com
parentFS-Cache: Fix cancellation of in-progress operation (diff)
downloadlinux-a39caadf06879017cb9a8c5c5cb4fc4ccb213275.tar.xz
linux-a39caadf06879017cb9a8c5c5cb4fc4ccb213275.zip
FS-Cache: Put an aborted initialised op so that it is accounted correctly
Call fscache_put_operation() or a wrapper on any op that has gone through fscache_operation_init() so that the accounting shown in /proc is done correctly, specifically fscache_n_op_release. fscache_put_operation() therefore now allows an op in the INITIALISED state as well as in the CANCELLED and COMPLETE states. Note that this means that an operation can get put that doesn't have its ->object pointer filled in, so anything that depends on the object needs to be conditional in fscache_put_operation(). Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Steve Dickson <steved@redhat.com> Acked-by: Jeff Layton <jeff.layton@primarydata.com>
Diffstat (limited to 'firmware/3com')
0 files changed, 0 insertions, 0 deletions