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: NDavid Howells <dhowells@redhat.com> Reviewed-by: NSteve Dickson <steved@redhat.com> Acked-by: NJeff Layton <jeff.layton@primarydata.com>
Showing
想要评论请 注册 或 登录