struct lustre_idmap_table *med_idmap;
};
-struct osc_creator {
- cfs_spinlock_t oscc_lock;
- cfs_list_t oscc_wait_create_list;
- struct obd_device *oscc_obd;
- obd_id oscc_last_id;//last available pre-created object
- obd_id oscc_next_id;// what object id to give out next
- int oscc_grow_count;
- /**
- * Limit oscc_grow_count value, can be changed via proc fs
- */
- int oscc_max_grow_count;
- struct obdo oscc_oa;
- int oscc_flags;
- cfs_waitq_t oscc_waitq; /* creating procs wait on this */
-};
-
struct ec_export_data { /* echo client */
cfs_list_t eced_locks;
};
cfs_list_t exp_obd_chain_timed;
/** Obd device of this export */
struct obd_device *exp_obd;
- /** "reverse" import to send requests (e.g. from ldlm) back to client */
+ /**
+ * "reverse" import to send requests (e.g. from ldlm) back to client
+ * exp_lock protect its change
+ */
struct obd_import *exp_imp_reverse;
struct nid_stat *exp_nid_stats;
struct lprocfs_stats *exp_md_stats;
cfs_time_t exp_last_request_time;
/** On replay all requests waiting for replay are linked here */
cfs_list_t exp_req_replay_queue;
- /** protects exp_flags and exp_outstanding_replies */
+ /**
+ * protects exp_flags, exp_outstanding_replies and the change
+ * of exp_imp_reverse
+ */
cfs_spinlock_t exp_lock;
/** Compatibility flags for this export */
__u64 exp_connect_flags;
return !!(exp->exp_connect_flags & OBD_CONNECT_SOM);
}
+static inline int exp_connect_umask(struct obd_export *exp)
+{
+ return !!(exp->exp_connect_flags & OBD_CONNECT_UMASK);
+}
+
static inline int imp_connect_lru_resize(struct obd_import *imp)
{
struct obd_connect_data *ocd;