int bwr_index;
};
-/**
+/*
* Prepare inline update request
*
* Prepare BUT update ptlrpc inline request, and the request usuanlly includes
return 0;
}
-/**
+/*
* Destroy an @object_update_callback.
*/
static void object_update_callback_fini(struct object_update_callback *ouc)
OBD_FREE_PTR(ouc);
}
-/**
+/*
* Insert an @object_update_callback into the the @batch_update_head.
*
* Usually each update in @batch_update_head will have one correspondent
return 0;
}
-/**
+/*
* Allocate and initialize batch update request.
*
* @batch_update_head is being used to track updates being executed on
EXPORT_SYMBOL(sptlrpc_rule_set_merge);
/**
- * given from/to/nid, determine a matching flavor in ruleset.
+ * sptlrpc_rule_set_choose() - given from/to/nid, determine a matching flavor
+ * in ruleset.
+ * @rset: pointer to rule set to be searched
+ * @from: where request is coming (client, MDT, OST)
+ * @to: where request is going
+ * @nid: pointer to lnet_nid (network identifier)
+ * @sf: Choosen flavor is stored [out]
+ *
* return 1 if a match found, otherwise return 0.
*/
int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset,
return sptlrpc_rule_set_merge(rule_set, rule);
}
-/**
- * process one LCFG_SPTLRPC_CONF record. if \a conf is NULL, we
+/*
+ * process one LCFG_SPTLRPC_CONF record. if @conf is NULL, we
* find one through the target name in the record inside conf_lock;
* otherwise means caller already hold conf_lock.
*/
RETURN(rc);
}
+/**
+ * sptlrpc_process_config() - process a config record related to the sec policy
+ * @lcfg: pointer to struct lustre_cfg (config record)
+ *
+ * Return:
+ * * %0 on success
+ * * %negative on failure
+ */
int sptlrpc_process_config(struct lustre_cfg *lcfg)
{
char fsname[MTI_NAME_MAXLEN];
flavor_set_flags(sf, from, to, 1);
}
-/**
+/*
* called by target devices, determine the expected flavor from
* certain peer (from, nid).
*/
#define SEC_ADAPT_DELAY (10)
/**
+ * sptlrpc_conf_client_adapt() - notify the sptlrpc config has changed
+ * @obd: pointer to obd device (client side, OSC/MDC)
+ *
* called by client devices, notify the sptlrpc config has changed and
* do import_sec_adapt later.
*/
}
EXPORT_SYMBOL(sptlrpc_conf_client_adapt);
-/**
+/*
* called by target devices, extract sptlrpc rules which applies to
* this target, to be used for future rpc flavor checking.
*/