⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lustre_commit_confd.h

📁 lustre 1.6.5 source code
💻 H
字号:
/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- * vim:expandtab:shiftwidth=8:tabstop=8: * *   This file is part of Lustre, http://www.lustre.org * * Structures relating to the log commit thread. */#ifndef _LUSTRE_COMMIT_CONFD_H#define _LUSTRE_COMMIT_CONFD_H#include <lustre_log.h>struct llog_canceld_ctxt {        struct list_head           llcd_list;  /* free or pending struct list */        struct llog_ctxt          *llcd_ctxt;        struct llog_commit_master *llcd_lcm;        int                        llcd_size;        int                        llcd_cookiebytes;        struct llog_cookie         llcd_cookies[0];};struct llog_commit_master {        struct list_head        lcm_thread_busy;  /* list of busy daemons */        struct list_head        lcm_thread_idle;  /* list of idle daemons */        spinlock_t              lcm_thread_lock;  /* protects thread_list */        atomic_t                lcm_thread_numidle;/* number of idle threads */        atomic_t                lcm_thread_total; /* total number of threads */        int                     lcm_thread_max;   /* <= num_osts normally */        int                     lcm_flags;        cfs_waitq_t             lcm_waitq;        struct list_head        lcm_llcd_pending; /* llog_canceld_ctxt to send */        struct list_head        lcm_llcd_resend;  /* try to resend this data */        struct list_head        lcm_llcd_free;    /* free llog_canceld_ctxt */        spinlock_t              lcm_llcd_lock;    /* protects llcd_free */        atomic_t                lcm_llcd_numfree; /* items on llcd_free */        int                     lcm_llcd_minfree; /* min free on llcd_free */        int                     lcm_llcd_maxfree; /* max free on llcd_free */};#define LLOG_LCM_FL_EXIT        0x01#define LLOG_LCM_FL_EXIT_FORCE  0x02/* the thread data that collects local commits and makes rpc's */struct llog_commit_daemon {        struct list_head           lcd_lcm_list;  /* list of daemon threads */        struct list_head           lcd_llcd_list; /* list of pending RPCs */        struct llog_commit_master *lcd_lcm;       /* pointer back to parent */        int                        lcd_index;     /* the index of the llog daemon */};/* ptlrpc/recov_thread.c */int llog_start_commit_thread(struct llog_commit_master *);int llog_init_commit_master(struct llog_commit_master *);int llog_cleanup_commit_master(struct llog_commit_master *lcm, int force);#endif /* _LUSTRE_COMMIT_CONFD_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -