]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid Howells <dhowells@redhat.com>
Wed, 25 Jul 2018 13:31:20 +0000 (14:31 +0100)
commit51a982af9d9635cb1005277cb7c5f00a408b5d99
tree584436c22f6df0a2e686065cca74de9230c42715
parentf08839a29717ef7884594baff383b7469285f1d2
fscache: Allow cancelled operations to be enqueued

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: 5f60092fcbc4 ("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>
fs/fscache/operation.c