Message ID | 20180802041734.22518-2-daniel.axtens@canonical.com |
---|---|
State | New |
Headers | show |
Series | NFS FSCache Fixes: LP: #1774336, #1776277, #1776254 | expand |
diff --git a/fs/cachefiles/rdwr.c b/fs/cachefiles/rdwr.c index 9d5d13e150fb..883bc7bb12c5 100644 --- a/fs/cachefiles/rdwr.c +++ b/fs/cachefiles/rdwr.c @@ -58,9 +58,9 @@ static int cachefiles_read_waiter(wait_queue_entry_t *wait, unsigned mode, spin_lock(&object->work_lock); list_add_tail(&monitor->op_link, &monitor->op->to_do); - fscache_enqueue_retrieval(monitor->op); spin_unlock(&object->work_lock); + fscache_enqueue_retrieval(monitor->op); return 0; }
BugLink: https://bugs.launchpad.net/bugs/1774336 Revert 89ec2b71b8b6e531ee069347a7d8b385c66737d1 in Bionic. Upstream has taken a different solution, which we're about to apply. Signed-off-by: Daniel Axtens <daniel.axtens@canonical.com> --- fs/cachefiles/rdwr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)