X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Flnet%2Fmodule.c;h=aaad649a00f99eeeb1728fb4bca71d5c7bd03411;hp=9d574797d6af2abaec870edbbf496a08bff55928;hb=da677c1c4f37886ff7b8d31396645b12365c0e88;hpb=11220ac2f0d1245e14306f116f1c262662037740 diff --git a/lnet/lnet/module.c b/lnet/lnet/module.c index 9d57479..aaad649 100644 --- a/lnet/lnet/module.c +++ b/lnet/lnet/module.c @@ -84,28 +84,28 @@ lnet_unconfigure (void) } int -lnet_ioctl(unsigned int cmd, struct libcfs_ioctl_data *data) +lnet_ioctl(unsigned int cmd, struct libcfs_ioctl_hdr *hdr) { - int rc; - - switch (cmd) { - case IOC_LIBCFS_CONFIGURE: - return lnet_configure(NULL); - - case IOC_LIBCFS_UNCONFIGURE: - return lnet_unconfigure(); - - default: - /* Passing LNET_PID_ANY only gives me a ref if the net is up - * already; I'll need it to ensure the net can't go down while - * I'm called into it */ - rc = LNetNIInit(LNET_PID_ANY); - if (rc >= 0) { - rc = LNetCtl(cmd, data); - LNetNIFini(); - } - return rc; - } + int rc; + + switch (cmd) { + case IOC_LIBCFS_CONFIGURE: + return lnet_configure(NULL); + + case IOC_LIBCFS_UNCONFIGURE: + return lnet_unconfigure(); + + default: + /* Passing LNET_PID_ANY only gives me a ref if the net is up + * already; I'll need it to ensure the net can't go down while + * I'm called into it */ + rc = LNetNIInit(LNET_PID_ANY); + if (rc >= 0) { + rc = LNetCtl(cmd, hdr); + LNetNIFini(); + } + return rc; + } } DECLARE_IOCTL_HANDLER(lnet_ioctl_handler, lnet_ioctl);