Ceph-OSD(16版本)
PrimaryLogPG::do_request
> PrimaryLogPG::do_op
>> PrimaryLogPG::execute_ctx
>>> PrimaryLogPG::prepare_transaction
>>>> PrimaryLogPG::do_osd_ops
>>> PrimaryLogPG::new_repop
>>> PrimaryLogPG::issue_repop
>>>> PrimaryLogPG::repop_all_committed
>>>> PGBackend::submit_transaction
>>> PrimaryLogPG::eval_repop
///////////////////
fuse_ll_write
CephFuse->Handle->client->ll_write
CephFuse->Handle->client->_write
CephFuse->Handle->client->get_caps
CephFuse->Handle->client->check_pool_perm
CephFuse->Handle->client->check_caps
// 需要更新 Inode->max_size
CephFuse->Handle->client->send_cap
CEPH_CAP_OP_UPDATE
MClientCaps
----------------------------------------------
MDS侧:
MDSRank->locker->handle_client_caps
MDSRank->locker->_do_cap_update
MDSRank->locker->calc_new_max_size
MDSRank->locker->issue_caps
----------------------------------------------
// 分支A:缓存命中 :Client->objectcacher
Client->objectcacher
ObjectCacher->file_write
ObjectCacher->writex
// 分支B:直接写透
CephFuse->Handle->client->_flush_range
Filer->write_trunc
Filer->objecter->sg_write_trunc
Filer->objecter->write_trunc
Filer->objecter->op_submit
Filer->objecter->_op_submit_with_budget
Filer->objecter->_op_submit
/////////////////////
PrimaryLogPG->do_op
PrimaryLogPG->maybe_handle_cache
PrimaryLogPG->maybe_handle_cache_detail
PrimaryLogPG->promote_object
PrimaryLogPG->do_proxy_write