{"action":"created","issue":{"url":"https://api.github.com/repos/ceph/ceph/issues/6028","labels_url":"https://api.github.com/repos/ceph/ceph/issues/6028/labels{/name}","comments_url":"https://api.github.com/repos/ceph/ceph/issues/6028/comments","events_url":"https://api.github.com/repos/ceph/ceph/issues/6028/events","html_url":"https://github.com/ceph/ceph/pull/6028","id":107678804,"number":6028,"title":"LibRBD: Adjust correct op latency scope","user":{"login":"yuyuyu101","id":980577,"avatar_url":"https://avatars.githubusercontent.com/u/980577?v=3","gravatar_id":"","url":"https://api.github.com/users/yuyuyu101","html_url":"https://github.com/yuyuyu101","followers_url":"https://api.github.com/users/yuyuyu101/followers","following_url":"https://api.github.com/users/yuyuyu101/following{/other_user}","gists_url":"https://api.github.com/users/yuyuyu101/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyuyu101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyuyu101/subscriptions","organizations_url":"https://api.github.com/users/yuyuyu101/orgs","repos_url":"https://api.github.com/users/yuyuyu101/repos","events_url":"https://api.github.com/users/yuyuyu101/events{/privacy}","received_events_url":"https://api.github.com/users/yuyuyu101/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceph/ceph/labels/rbd","name":"rbd","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-22T09:45:13Z","updated_at":"2015-09-22T15:48:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ceph/ceph/pulls/6028","html_url":"https://github.com/ceph/ceph/pull/6028","diff_url":"https://github.com/ceph/ceph/pull/6028.diff","patch_url":"https://github.com/ceph/ceph/pull/6028.patch"},"body":"Op latency need to cover from queuing to finishing op."},"comment":{"url":"https://api.github.com/repos/ceph/ceph/issues/comments/142330259","html_url":"https://github.com/ceph/ceph/pull/6028#issuecomment-142330259","issue_url":"https://api.github.com/repos/ceph/ceph/issues/6028","id":142330259,"user":{"login":"dillaman","id":4739042,"avatar_url":"https://avatars.githubusercontent.com/u/4739042?v=3","gravatar_id":"","url":"https://api.github.com/users/dillaman","html_url":"https://github.com/dillaman","followers_url":"https://api.github.com/users/dillaman/followers","following_url":"https://api.github.com/users/dillaman/following{/other_user}","gists_url":"https://api.github.com/users/dillaman/gists{/gist_id}","starred_url":"https://api.github.com/users/dillaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dillaman/subscriptions","organizations_url":"https://api.github.com/users/dillaman/orgs","repos_url":"https://api.github.com/users/dillaman/repos","events_url":"https://api.github.com/users/dillaman/events{/privacy}","received_events_url":"https://api.github.com/users/dillaman/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T15:48:49Z","updated_at":"2015-09-22T15:48:49Z","body":"@yuyuyu101 Thanks -- this has been on the back of my mind for a while.  I think you will need to create a new ```AioCompletion::start_op``` function which is called where ```init_time``` was previously called.  That routine would just be:\r\n\r\n```\r\nif (!async_op.started()) {\r\n  async_op.start_op();\r\n}\r\n```\r\n\r\nOtherwise, I think there is a possibility for a race condition between ops and flush requests."}}