#include <linux/obd_class.h>
#include <linux/lustre_net.h>
-#define MGMT_NEVENTS 1024UL
#define MGMT_NBUFS 128UL
#define MGMT_BUFSIZE 8192
#define MGMT_MAXREQSIZE 512
if (mgmt_initialized)
RETURN(-EALREADY);
- mgmt_service = ptlrpc_init_svc(MGMT_NEVENTS, MGMT_NBUFS, MGMT_BUFSIZE,
- MGMT_MAXREQSIZE, MGMT_REQUEST_PORTAL,
- MGMT_REPLY_PORTAL, mgmt_handler,
- "mgmt", obd->obd_proc_entry);
+ mgmt_service =
+ ptlrpc_init_svc(MGMT_NBUFS, MGMT_BUFSIZE, MGMT_MAXREQSIZE,
+ MGMT_REQUEST_PORTAL, MGMT_REPLY_PORTAL,
+ mgmt_handler, "mgmt",
+ obd->obd_proc_entry);
if (!mgmt_service) {
CERROR("Failed to start mgmt service\n");
RETURN(-ENOMEM);
}
static struct obd_ops mgmt_obd_ops = {
- o_owner: THIS_MODULE,
- o_setup: mgmt_setup,
- o_cleanup: mgmt_cleanup,
- o_connect: class_connect,
- o_disconnect: class_disconnect
+ .o_owner = THIS_MODULE,
+ .o_setup = mgmt_setup,
+ .o_cleanup = mgmt_cleanup,
+ .o_connect = class_connect,
+ .o_disconnect = class_disconnect
};
static int __init mgmt_init(void)