fscache: Allow cancelled operations to be enqueued
authorKiran Kumar Modukuri <kiran.modukuri@gmail.com>
Wed, 25 Jul 2018 13:31:20 +0000 (14:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:26:29 +0000 (09:26 +0200)
commit819b476c21386dc2a771b19dab6451cabec628e7
tree18aef050de7bc65efb7eea9828ff59383c165ea5
parent165335d4f18e0f730009452f52086c362c250dd2
fscache: Allow cancelled operations to be enqueued

[ Upstream commit d0eb06afe712b7b103b6361f40a9a0c638524669 ]

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: 9ae326a69004 ("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: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/fscache/operation.c