diff options
author | David Howells <dhowells@redhat.com> | 2015-02-24 11:05:27 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2015-04-02 15:28:53 +0200 |
commit | 30ceec6284129662efc3a1e7675b2bd857a046fe (patch) | |
tree | 98fba830445abbf24eb3fc969564fc20e29c04a8 /fs/gfs2/meta_io.h | |
parent | FS-Cache: Move fscache_report_unexpected_submission() to make it more available (diff) | |
download | linux-30ceec6284129662efc3a1e7675b2bd857a046fe.tar.xz linux-30ceec6284129662efc3a1e7675b2bd857a046fe.zip |
FS-Cache: When submitting an op, cancel it if the target object is dying
When submitting an operation, prefer to cancel the operation immediately
rather than queuing it for later processing if the object is marked as dying
(ie. the object state machine has reached the KILL_OBJECT state).
Whilst we're at it, change the series of related test_bit() calls into a
READ_ONCE() and bitwise-AND operators to reduce the number of load
instructions (test_bit() has a volatile address).
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 'fs/gfs2/meta_io.h')
0 files changed, 0 insertions, 0 deletions