美文网首页
2021-05-07

2021-05-07

作者: 帆子_8c3a | 来源:发表于2021-05-07 01:07 被阅读0次
server_start_targets
    lustre_start_simple
        do_lcfg //for LCFG_ATTACH
            class_attach
        do_lcfg //for LCFG_SETUP
            class_setup


class_attach
    class_newdev


class_setup
    obd_setup
        lov_setup
            obd_llog_init
                lov_llog_init
                    llog_setup //LLOG_MDS_OST_ORIG_CTXT, lov_mds_ost_orig_logops
                        lov_llog_origin_connect
                            llog_connect
                                llog_origin_connect //send LLOG_ORIGIN_CONNECT RPC
                                    => llog_handle_connect
                    llog_setup //LLOG_SIZE_REPL_CTXT, lov_size_repl_logops
                    //循环调用
                        obd_llog_init
                            osc_llog_init
                                llog_setup //LLOG_MDS_OST_ORIG_CTXT, osc_mds_ost_orig_logops
                                    llog_obd_origin_setup
                                        llog_create
                                        llog_process  
                                llog_setup //LLOG_SIZE_REPL_CTXT, osc_size_repl_logops




mds_finish_transno
    lustre_msg_get_transno
    fsfilt_add_journal_cb
    fsfilt_write_record
    mds_lov_write_objids
    fsfilt_commit

mdc_unlink
    mdc_reint

## XID
oti->oti_xid = req->rq_xid;
    
ptlrpc_prep_req_pool
    request->rq_xid = ptlrpc_next_xid();


## transaction
oti_init

target_send_reply

## replay
struct obd_import
    struct list_head          imp_replay_list;
    struct list_head          imp_sending_list;
    struct list_head          imp_delayed_list;    


ptlrpc_queue_wait
    after_reply
        lustre_msg_set_transno
        ptlrpc_retain_replayable_request
        lustre_msg_get_last_committed

ptlrpc_import_recovery_state_machine
    ptlrpc_replay_next
        ptlrpc_replay_req


## import req 状态机
enum lustre_imp_state {
        LUSTRE_IMP_CLOSED     = 1,
        LUSTRE_IMP_NEW        = 2,
        LUSTRE_IMP_DISCON     = 3,
        LUSTRE_IMP_CONNECTING = 4,
        LUSTRE_IMP_REPLAY     = 5,
        LUSTRE_IMP_REPLAY_LOCKS = 6,
        LUSTRE_IMP_REPLAY_WAIT  = 7,
        LUSTRE_IMP_RECOVER    = 8,
        LUSTRE_IMP_FULL       = 9,
        LUSTRE_IMP_EVICTED    = 10,
};

相关文章

  • 2021-05-07

    2021-05-07

  • 2021-05-07

    2021-05-07 2021-05-07 【燃梦行动.阅读】 我是徐新超 我在坚持“燃梦行动”!...

  • 1486. 数组异或操作

    2021-05-07 LeetCode每日一题 链接:https://leetcode-cn.com/proble...

  • bitshares比特股数据20210507

    2021-05-07比特股BTS大额转账的记录 时间转出转入BTS数量21:12:51zbbts001zbsend...

  • 命运无常

    2021-05-07 文章被屏。本来写文章的兴趣就低,也在逐渐缩减,这下更所剩无几了。 给我限流,干脆别审核通过,...

  • 匆匆那年

    今天,2021-05-07星期五 天气:小雨转晴,晴转阴天 心情:是谁那么慌,剪破翘望的时光?还记得匆匆那年第一次...

  • 下一个好

    我怎么如此幸运-99将帅挑战赛58-重生246-戴红霞(2021-05-07) 我怎么如此幸运-下一个好 1.我怎...

  • 风生水起(45)

    2021-05-07 晴,扬沙 不知为何,自从和学长谈过之后,封一川常有一种无力感。之前的封一川从不为周遭的环境所...

  • “你要嫁到上海吗?”——一家物业公司面试复盘

    厂妹面试记丨2021-05-07 昨日下午去了一家区属国企的物业公司参加他们的英才计划管培生复试,我其实在去之前因...

  • 2021-05-07

    最近心里老是充满了愁畅。媳妇儿老是不舒服,一会儿这问题一会那问题,搞得我也无所适从。一直认为我还挺淡定的,事来了还...

网友评论

      本文标题:2021-05-07

      本文链接:https://www.haomeiwen.com/subject/henjdltx.html