diff options
author | David Howells <[email protected]> | 2015-02-24 10:05:27 +0000 |
---|---|---|
committer | David Howells <[email protected]> | 2015-04-02 14:28:53 +0100 |
commit | 30ceec6284129662efc3a1e7675b2bd857a046fe (patch) | |
tree | 98fba830445abbf24eb3fc969564fc20e29c04a8 /net | |
parent | 3c3059841a9b99fa8dd8d878607deceec1e363e9 (diff) |
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 <[email protected]>
Reviewed-by: Steve Dickson <[email protected]>
Acked-by: Jeff Layton <[email protected]>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions