Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ceph: call netfs_subreq_terminated with was_async == false

"was_async" is a bit misleadingly named. It's supposed to indicate
whether it's safe to call blocking operations from the context you're
calling it from, but it sounds like it's asking whether this was done
via async operation. For ceph, this it's always called from kernel
thread context so it should be safe to set this to false.

Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

authored by

Jeff Layton and committed by
Ilya Dryomov
7467b044 e8214503

+1 -1
+1 -1
fs/ceph/addr.c
··· 237 237 if (err >= 0 && err < subreq->len) 238 238 __set_bit(NETFS_SREQ_CLEAR_TAIL, &subreq->flags); 239 239 240 - netfs_subreq_terminated(subreq, err, true); 240 + netfs_subreq_terminated(subreq, err, false); 241 241 242 242 num_pages = calc_pages_for(osd_data->alignment, osd_data->length); 243 243 ceph_put_page_vector(osd_data->pages, num_pages, false);