ceph: sync read inline data
authorYan, Zheng <zyan@redhat.com>
Fri, 14 Nov 2014 14:36:18 +0000 (22:36 +0800)
committerIlya Dryomov <idryomov@redhat.com>
Wed, 17 Dec 2014 17:09:52 +0000 (20:09 +0300)
commit83701246aee8f83b4b42483051b439fbe96ed47d
tree45e0392da027efe21b3af9606ed10043ed093d1d
parent3738daa68a5121ad7dd0318bca931e2a6afb0e8c
ceph: sync read inline data

we can't use getattr to fetch inline data while holding Fr cap,
because it can cause deadlock. If we need to sync read inline data,
drop cap refs first, then use getattr to fetch inline data.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/addr.c
fs/ceph/file.c