From: David Howells Date: Tue, 24 Feb 2015 10:05:27 +0000 (+0000) Subject: FS-Cache: When submitting an op, cancel it if the target object is dying X-Git-Tag: omap-for-v4.3/legacy-v2-signed~35^2~17^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30ceec6284129662efc3a1e7675b2bd857a046fe;p=pandora-kernel.git 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 Reviewed-by: Steve Dickson Acked-by: Jeff Layton --- Reading git-diff-tree failed