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)
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

diff --cc fs/ceph/addr.c
Simple merge
diff --cc fs/ceph/file.c
Simple merge