linux/fs/fscache/operation.c
Kiran Kumar Modukuri 7f72cb725c fscache: Allow cancelled operations to be enqueued
commit d0eb06afe7 upstream.

Alter the state-check assertion in fscache_enqueue_operation() to allow
cancelled operations to be given processing time so they can be cleaned up.

Also fix a debugging statement that was requiring such operations to have
an object assigned.

Fixes: 9ae326a690 ("CacheFiles: A cache that backs onto a mounted filesystem")
Reported-by: Kiran Kumar Modukuri <kiran.modukuri@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2018-11-20 18:05:49 +00:00

531 lines
14 KiB