diff options
| -rw-r--r-- | drivers/staging/lustre/include/linux/libcfs/libcfs_ioctl.h | 1 | ||||
| -rw-r--r-- | drivers/staging/lustre/lustre/libcfs/module.c | 17 |
2 files changed, 0 insertions, 18 deletions
diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_ioctl.h b/drivers/staging/lustre/include/linux/libcfs/libcfs_ioctl.h index f5d741f25ffd..485ab2670918 100644 --- a/drivers/staging/lustre/include/linux/libcfs/libcfs_ioctl.h +++ b/drivers/staging/lustre/include/linux/libcfs/libcfs_ioctl.h | |||
| @@ -110,7 +110,6 @@ struct libcfs_ioctl_handler { | |||
| 110 | #define IOC_LIBCFS_CLEAR_DEBUG _IOWR('e', 31, long) | 110 | #define IOC_LIBCFS_CLEAR_DEBUG _IOWR('e', 31, long) |
| 111 | #define IOC_LIBCFS_MARK_DEBUG _IOWR('e', 32, long) | 111 | #define IOC_LIBCFS_MARK_DEBUG _IOWR('e', 32, long) |
| 112 | #define IOC_LIBCFS_MEMHOG _IOWR('e', 36, long) | 112 | #define IOC_LIBCFS_MEMHOG _IOWR('e', 36, long) |
| 113 | #define IOC_LIBCFS_PING_TEST _IOWR('e', 37, long) | ||
| 114 | /* lnet ioctls */ | 113 | /* lnet ioctls */ |
| 115 | #define IOC_LIBCFS_GET_NI _IOWR('e', 50, long) | 114 | #define IOC_LIBCFS_GET_NI _IOWR('e', 50, long) |
| 116 | #define IOC_LIBCFS_FAIL_NID _IOWR('e', 51, long) | 115 | #define IOC_LIBCFS_FAIL_NID _IOWR('e', 51, long) |
diff --git a/drivers/staging/lustre/lustre/libcfs/module.c b/drivers/staging/lustre/lustre/libcfs/module.c index 07a68594c279..e7c2b26156b9 100644 --- a/drivers/staging/lustre/lustre/libcfs/module.c +++ b/drivers/staging/lustre/lustre/libcfs/module.c | |||
| @@ -274,23 +274,6 @@ static int libcfs_ioctl_int(struct cfs_psdev_file *pfile, unsigned long cmd, | |||
| 274 | } | 274 | } |
| 275 | break; | 275 | break; |
| 276 | 276 | ||
| 277 | case IOC_LIBCFS_PING_TEST: { | ||
| 278 | extern void (kping_client)(struct libcfs_ioctl_data *); | ||
| 279 | void (*ping)(struct libcfs_ioctl_data *); | ||
| 280 | |||
| 281 | CDEBUG(D_IOCTL, "doing %d pings to nid %s (%s)\n", | ||
| 282 | data->ioc_count, libcfs_nid2str(data->ioc_nid), | ||
| 283 | libcfs_nid2str(data->ioc_nid)); | ||
| 284 | ping = symbol_get(kping_client); | ||
| 285 | if (!ping) | ||
| 286 | CERROR("symbol_get failed\n"); | ||
| 287 | else { | ||
| 288 | ping(data); | ||
| 289 | symbol_put(kping_client); | ||
| 290 | } | ||
| 291 | return 0; | ||
| 292 | } | ||
| 293 | |||
| 294 | default: { | 277 | default: { |
| 295 | struct libcfs_ioctl_handler *hand; | 278 | struct libcfs_ioctl_handler *hand; |
| 296 | 279 | ||
