]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/cephfs: use getattr to guarantee inode is in client cache 15062/head
authorYan, Zheng <zyan@redhat.com>
Fri, 12 May 2017 08:31:51 +0000 (16:31 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 12 May 2017 08:42:25 +0000 (16:42 +0800)
commit1a48359f34d2285b7946318d0a1f346727a9c016
tree474304b4195dda70b182ba7bc646f4458a7b1df4
parentd0a73ec955cc48c4f5b29c162db13fd1a8e6b84e
qa/tasks/cephfs: use getattr to guarantee inode is in client cache

When selinux is enabled, kernel client may releases inodes (without
uptodate xattr) in readdir reply immediately after processing the reply.
The reason is that linking the inode to dentry causes deadlock if xattr
is not uptodate.

We can use stat(2) syscall to guarantee that kernel client caches an
inode.

Fixes: http://tracker.ceph.com/issues/19912
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
qa/tasks/cephfs/test_client_recovery.py