]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
fscache: Allow cancelled operations to be enqueued
authorKiran Kumar Modukuri <kiran.modukuri@gmail.com>
Thu, 2 Aug 2018 04:17:30 +0000 (14:17 +1000)
committerKamal Mostafa <kamal@canonical.com>
Wed, 22 Aug 2018 20:41:16 +0000 (13:41 -0700)
commitb3626523a6e71a39f88e06894024103c42705f58
treed0979f3affbf4b3be69643233a3d588ee4ec2e3e
parent59fd360fe4998dd521324606e78ebd524a9c36e0
fscache: Allow cancelled operations to be enqueued

BugLink: https://bugs.launchpad.net/bugs/1774336
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>
(cherry picked from commit d0eb06afe712b7b103b6361f40a9a0c638524669)
Signed-off-by: Daniel Axtens <daniel.axtens@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/fscache/operation.c