{"action":"created","issue":{"url":"https://api.github.com/repos/ceph/ceph/issues/6598","labels_url":"https://api.github.com/repos/ceph/ceph/issues/6598/labels{/name}","comments_url":"https://api.github.com/repos/ceph/ceph/issues/6598/comments","events_url":"https://api.github.com/repos/ceph/ceph/issues/6598/events","html_url":"https://github.com/ceph/ceph/pull/6598","id":117087722,"number":6598,"title":"client: fix deadlock related to async pagecache invalidation","user":{"login":"ukernel","id":2775471,"avatar_url":"https://avatars.githubusercontent.com/u/2775471?v=3","gravatar_id":"","url":"https://api.github.com/users/ukernel","html_url":"https://github.com/ukernel","followers_url":"https://api.github.com/users/ukernel/followers","following_url":"https://api.github.com/users/ukernel/following{/other_user}","gists_url":"https://api.github.com/users/ukernel/gists{/gist_id}","starred_url":"https://api.github.com/users/ukernel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ukernel/subscriptions","organizations_url":"https://api.github.com/users/ukernel/orgs","repos_url":"https://api.github.com/users/ukernel/repos","events_url":"https://api.github.com/users/ukernel/events{/privacy}","received_events_url":"https://api.github.com/users/ukernel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-16T09:56:04Z","updated_at":"2015-11-16T10:22:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ceph/ceph/pulls/6598","html_url":"https://github.com/ceph/ceph/pull/6598","diff_url":"https://github.com/ceph/ceph/pull/6598.diff","patch_url":"https://github.com/ceph/ceph/pull/6598.patch"},"body":"When mds reovkes Fc capability, client code first invalidates kernel\r\npagecache, then calls check_caps() to release Fc capability to MDS.\r\ninvalidating kernel pagecache can block if there is writer holding\r\ni_mutex. Deadlock happens if the writer needs to wait Fw capability.\r\n(MDS can't finish revoking Fc capability because client doesn't call\r\n check_caps(). So mds can't issue Fw to the client)\r\n\r\nThe fix is call check_caps() after invalidating the objectcacher.\r\n\r\nFixes: #13800\r\nSigned-off-by: Yan, Zheng <zyan@redhat.com>"},"comment":{"url":"https://api.github.com/repos/ceph/ceph/issues/comments/156980074","html_url":"https://github.com/ceph/ceph/pull/6598#issuecomment-156980074","issue_url":"https://api.github.com/repos/ceph/ceph/issues/6598","id":156980074,"user":{"login":"loic-bot","id":9638672,"avatar_url":"https://avatars.githubusercontent.com/u/9638672?v=3","gravatar_id":"","url":"https://api.github.com/users/loic-bot","html_url":"https://github.com/loic-bot","followers_url":"https://api.github.com/users/loic-bot/followers","following_url":"https://api.github.com/users/loic-bot/following{/other_user}","gists_url":"https://api.github.com/users/loic-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/loic-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loic-bot/subscriptions","organizations_url":"https://api.github.com/users/loic-bot/orgs","repos_url":"https://api.github.com/users/loic-bot/repos","events_url":"https://api.github.com/users/loic-bot/events{/privacy}","received_events_url":"https://api.github.com/users/loic-bot/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T10:22:32Z","updated_at":"2015-11-16T10:22:32Z","body":"SUCCESS: http://jenkins.ceph.dachary.org/job/ceph/9323/\n* SUCCESS http://jenkins.ceph.dachary.org/job/ceph/LABELS=centos-7&&x86_64/9323/\n"}}