Whamcloud - gitweb
LU-7578 gnilnd: Revert max_immediate setting
[fs/lustre-release.git] / lnet / klnds / gnilnd / gnilnd_modparams.c
1 /*
2  * Copyright (C) 2004 Cluster File Systems, Inc.
3  *
4  * Copyright (C) 2009-2012 Cray, Inc.
5  *
6  *   Derived from work by: Eric Barton <eric@bartonsoftware.com>
7  *   Author: Nic Henke <nic@cray.com>
8  *
9  *   This file is part of Lustre, http://www.lustre.org.
10  *
11  *   Lustre is free software; you can redistribute it and/or
12  *   modify it under the terms of version 2 of the GNU General Public
13  *   License as published by the Free Software Foundation.
14  *
15  *   Lustre is distributed in the hope that it will be useful,
16  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  *   GNU General Public License for more details.
19  *
20  *   You should have received a copy of the GNU General Public License
21  *   along with Lustre; if not, write to the Free Software
22  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23  *
24  */
25
26 #include "gnilnd.h"
27
28 static int credits = 256;
29 CFS_MODULE_PARM(credits, "i", int, 0444,
30                 "# concurrent sends");
31
32 static int eager_credits = 256 * 1024;
33 CFS_MODULE_PARM(eager_credits, "i", int, 0644,
34                 "# eager buffers");
35
36 static int peer_credits = 16;
37 CFS_MODULE_PARM(peer_credits, "i", int, 0444,
38                 "# LNet peer credits");
39
40 /* NB - we'll not actually limit sends to this, we just size the mailbox buffer
41  * such that at most we'll have concurrent_sends * max_immediate messages
42  * in the mailbox */
43 static int concurrent_sends = 0;
44 CFS_MODULE_PARM(concurrent_sends, "i", int, 0444,
45                 "# concurrent HW sends to 1 peer");
46
47 /* default for 2k nodes @ 16 peer credits */
48 static int fma_cq_size = 32768;
49 CFS_MODULE_PARM(fma_cq_size, "i", int, 0444,
50                 "size of the completion queue");
51
52 static int timeout = GNILND_BASE_TIMEOUT;
53 /* can't change @ runtime because LNet gets NI data at startup from
54  * this value */
55 CFS_MODULE_PARM(timeout, "i", int, 0444,
56                 "communications timeout (seconds)");
57
58 /* time to wait between datagram timeout and sending of next dgram */
59 static int min_reconnect_interval = GNILND_MIN_RECONNECT_TO;
60 CFS_MODULE_PARM(min_reconnect_interval, "i", int, 0644,
61                 "minimum connection retry interval (seconds)");
62
63 /* if this goes longer than timeout, we'll timeout the TX before
64  * the dgram */
65 static int max_reconnect_interval = GNILND_MAX_RECONNECT_TO;
66 CFS_MODULE_PARM(max_reconnect_interval, "i", int, 0644,
67                 "maximum connection retry interval (seconds)");
68
69 static int max_immediate = 2048;
70 CFS_MODULE_PARM(max_immediate, "i", int, 0444,
71                 "immediate/RDMA breakpoint");
72
73 static int checksum = GNILND_CHECKSUM_DEFAULT;
74 CFS_MODULE_PARM(checksum, "i", int, 0644,
75                 "0: None, 1: headers, 2: short msg, 3: all traffic");
76
77 static int checksum_dump = 0;
78 CFS_MODULE_PARM(checksum_dump, "i", int, 0644,
79                 "0: None, 1: dump log on failure, 2: payload data to D_INFO log");
80
81 static int bte_dlvr_mode = GNILND_RDMA_DLVR_OPTION;
82 CFS_MODULE_PARM(bte_dlvr_mode, "i", int, 0644,
83                 "enable hashing for BTE (RDMA) transfers");
84
85 static int bte_relaxed_ordering = 1;
86 CFS_MODULE_PARM(bte_relaxed_ordering, "i", int, 0644,
87                 "enable relaxed ordering (PASSPW) for BTE (RDMA) transfers");
88
89 #ifdef CONFIG_MK1OM
90 static int ptag = GNI_PTAG_LND_KNC;
91 #else
92 static int ptag = GNI_PTAG_LND;
93 #endif
94 CFS_MODULE_PARM(ptag, "i", int, 0444,
95                 "ptag for Gemini CDM");
96
97 static int pkey = GNI_JOB_CREATE_COOKIE(GNI_PKEY_LND, 0);
98 CFS_MODULE_PARM(pkey, "i", int, 0444, "pkey for CDM");
99
100 static int max_retransmits = 1024;
101 CFS_MODULE_PARM(max_retransmits, "i", int, 0444,
102                 "max retransmits for FMA");
103
104 static int nwildcard = 4;
105 CFS_MODULE_PARM(nwildcard, "i", int, 0444,
106                 "# wildcard datagrams to post per net (interface)");
107
108 static int nice = -20;
109 CFS_MODULE_PARM(nice, "i", int, 0444,
110                 "nice value for kgnilnd threads, default -20");
111
112 static int rdmaq_intervals = 4;
113 CFS_MODULE_PARM(rdmaq_intervals, "i", int, 0644,
114                 "# intervals per second for rdmaq throttling, default 4, 0 to disable");
115
116 static int loops = 100;
117 CFS_MODULE_PARM(loops, "i", int, 0644,
118                 "# of loops before scheduler is friendly, default 100");
119
120 static int hash_size = 503;
121 CFS_MODULE_PARM(hash_size, "i", int, 0444,
122                 "prime number for peer/conn hash sizing, default 503");
123
124 static int peer_health = 0;
125 CFS_MODULE_PARM(peer_health, "i", int, 0444,
126                 "Disable peer timeout for LNet peer health, default off, > 0 to enable");
127
128 static int peer_timeout = -1;
129 CFS_MODULE_PARM(peer_timeout, "i", int, 0444,
130                 "Peer timeout used for peer_health, default based on gnilnd timeout, > -1 to manually set");
131
132 static int vmap_cksum = 0;
133 CFS_MODULE_PARM(vmap_cksum, "i", int, 0644,
134                 "use vmap for all kiov checksumming, default off");
135
136 static int mbox_per_block = GNILND_FMABLK;
137 CFS_MODULE_PARM(mbox_per_block, "i", int, 0644,
138                 "mailboxes per block");
139
140 static int nphys_mbox = 0;
141 CFS_MODULE_PARM(nphys_mbox, "i", int, 0444,
142                 "# mbox to preallocate from physical memory, default 0");
143
144 static int mbox_credits = GNILND_MBOX_CREDITS;
145 CFS_MODULE_PARM(mbox_credits, "i", int, 0644,
146                 "number of credits per mailbox");
147
148 static int sched_threads = GNILND_SCHED_THREADS;
149 CFS_MODULE_PARM(sched_threads, "i", int, 0444,
150                 "number of threads for moving data");
151
152 static int net_hash_size = 11;
153 CFS_MODULE_PARM(net_hash_size, "i", int, 0444,
154                 "prime number for net hash sizing, default 11");
155
156 static int hardware_timeout = GNILND_HARDWARE_TIMEOUT;
157 CFS_MODULE_PARM(hardware_timeout, "i", int, 0444,
158                 "maximum time for traffic to get from one node to another");
159
160 static int mdd_timeout = GNILND_MDD_TIMEOUT;
161 CFS_MODULE_PARM(mdd_timeout, "i", int, 0644,
162                 "maximum time (in minutes) for mdd to be held");
163
164 static int sched_timeout = GNILND_SCHED_TIMEOUT;
165 CFS_MODULE_PARM(sched_timeout, "i", int, 0644,
166                 "scheduler aliveness in seconds max time");
167
168 static int sched_nice = GNILND_SCHED_NICE;
169 CFS_MODULE_PARM(sched_nice, "i", int, 0444,
170                 "scheduler's nice setting, default compute 0 service -20");
171
172 static int reverse_rdma = GNILND_REVERSE_RDMA;
173 CFS_MODULE_PARM(reverse_rdma, "i", int, 0644,
174                 "Normal 0: Reverse GET: 1 Reverse Put: 2 Reverse Both: 3");
175
176 static int dgram_timeout = GNILND_DGRAM_TIMEOUT;
177 CFS_MODULE_PARM(dgram_timeout, "i", int, 0644,
178                 "dgram thread aliveness seconds max time");
179
180 static int efault_lbug = 0;
181 CFS_MODULE_PARM(efault_lbug, "i", int, 0644,
182                 "If a compute receives an EFAULT in"
183                 " a message should it LBUG. 0 off 1 on");
184
185 static int fast_reconn = GNILND_FAST_RECONNECT;
186 CFS_MODULE_PARM(fast_reconn, "i", int, 0644,
187                 "fast reconnect on connection timeout");
188
189 static int max_conn_purg = GNILND_PURGATORY_MAX;
190 CFS_MODULE_PARM(max_conn_purg, "i", int, 0644,
191                 "Max number of connections per peer in purgatory");
192
193 static int thread_affinity = 0;
194 CFS_MODULE_PARM(thread_affinity, "i", int, 0444,
195                 "scheduler thread affinity default 0 (disabled)");
196
197 static int thread_safe = GNILND_TS_ENABLE;
198 CFS_MODULE_PARM(thread_safe, "i", int, 0444,
199                 "Use kgni thread safe API if available");
200
201 kgn_tunables_t kgnilnd_tunables = {
202         .kgn_min_reconnect_interval = &min_reconnect_interval,
203         .kgn_max_reconnect_interval = &max_reconnect_interval,
204         .kgn_credits                = &credits,
205         .kgn_peer_credits           = &peer_credits,
206         .kgn_concurrent_sends       = &concurrent_sends,
207         .kgn_fma_cq_size            = &fma_cq_size,
208         .kgn_timeout                = &timeout,
209         .kgn_max_immediate          = &max_immediate,
210         .kgn_checksum               = &checksum,
211         .kgn_checksum_dump          = &checksum_dump,
212         .kgn_bte_dlvr_mode          = &bte_dlvr_mode,
213         .kgn_bte_relaxed_ordering   = &bte_relaxed_ordering,
214         .kgn_ptag                   = &ptag,
215         .kgn_pkey                   = &pkey,
216         .kgn_max_retransmits        = &max_retransmits,
217         .kgn_nwildcard              = &nwildcard,
218         .kgn_nice                   = &nice,
219         .kgn_rdmaq_intervals        = &rdmaq_intervals,
220         .kgn_loops                  = &loops,
221         .kgn_peer_hash_size         = &hash_size,
222         .kgn_peer_health            = &peer_health,
223         .kgn_peer_timeout           = &peer_timeout,
224         .kgn_vmap_cksum             = &vmap_cksum,
225         .kgn_mbox_per_block         = &mbox_per_block,
226         .kgn_nphys_mbox             = &nphys_mbox,
227         .kgn_mbox_credits           = &mbox_credits,
228         .kgn_sched_threads          = &sched_threads,
229         .kgn_net_hash_size          = &net_hash_size,
230         .kgn_hardware_timeout       = &hardware_timeout,
231         .kgn_mdd_timeout            = &mdd_timeout,
232         .kgn_sched_timeout          = &sched_timeout,
233         .kgn_sched_nice             = &sched_nice,
234         .kgn_reverse_rdma           = &reverse_rdma,
235         .kgn_dgram_timeout          = &dgram_timeout,
236         .kgn_eager_credits          = &eager_credits,
237         .kgn_fast_reconn            = &fast_reconn,
238         .kgn_efault_lbug            = &efault_lbug,
239         .kgn_thread_affinity        = &thread_affinity,
240         .kgn_thread_safe            = &thread_safe,
241         .kgn_max_purgatory          = &max_conn_purg
242 };
243
244 #if CONFIG_SYSCTL && !CFS_SYSFS_MODULE_PARM
245 static struct ctl_table kgnilnd_ctl_table[] = {
246         {
247                 INIT_CTL_NAME
248                 .procname = "min_reconnect_interval",
249                 .data     = &min_reconnect_interval,
250                 .maxlen   = sizeof(int),
251                 .mode     = 0644,
252                 .proc_handler = &proc_dointvec
253         },
254         {
255                 INIT_CTL_NAME
256                 .procname = "max_reconnect_interval",
257                 .data     = &max_reconnect_interval,
258                 .maxlen   = sizeof(int),
259                 .mode     = 0644,
260                 .proc_handler = &proc_dointvec
261         },
262         {
263                 INIT_CTL_NAME
264                 .procname = "credits",
265                 .data     = &credits,
266                 .maxlen   = sizeof(int),
267                 .mode     = 0444,
268                 .proc_handler = &proc_dointvec
269         },
270         {
271                 INIT_CTL_NAME
272                 .procname = "peer_credits",
273                 .data     = &peer_credits,
274                 .maxlen   = sizeof(int),
275                 .mode     = 0444,
276                 .proc_handler = &proc_dointvec
277         },
278         {
279                 INIT_CTL_NAME
280                 .procname = "fma_cq_size",
281                 .data     = &fma_cq_size,
282                 .maxlen   = sizeof(int),
283                 .mode     = 0444,
284                 .proc_handler = &proc_dointvec
285         },
286         {
287                 INIT_CTL_NAME
288                 .procname = "timeout",
289                 .data     = &timeout,
290                 .maxlen   = sizeof(int),
291                 .mode     = 0444,
292                 .proc_handler = &proc_dointvec
293         },
294         {
295                 INIT_CTL_NAME
296                 .procname = "max_immediate",
297                 .data     = &max_immediate,
298                 .maxlen   = sizeof(int),
299                 .mode     = 0444,
300                 .proc_handler = &proc_dointvec
301         },
302         {
303                 INIT_CTL_NAME
304                 .procname = "checksum",
305                 .data     = &checksum,
306                 .maxlen   = sizeof(int),
307                 .mode     = 0644,
308                 .proc_handler = &proc_dointvec
309         },
310         {
311                 INIT_CTL_NAME
312                 .procname = "bte_dlvr_mode",
313                 .data     = &bte_dlvr_mode,
314                 .maxlen   = sizeof(int),
315                 .mode     = 0644,
316                 .proc_handler = &proc_dointvec
317         },
318         {
319                 INIT_CTL_NAME
320                 .procname = "ptag",
321                 .data     = &ptag,
322                 .maxlen   = sizeof(int),
323                 .mode     = 0444,
324                 .proc_handler = &proc_dointvec
325         },
326         {
327                 INIT_CTL_NAME
328                 .procname = "pkey",
329                 .data     = &pkey,
330                 .maxlen   = sizeof(int),
331                 .mode     = 0444,
332                 .proc_handler = &proc_dointvec
333         },
334         {
335                 INIT_CTL_NAME
336                 .procname = "nwildcard",
337                 .data     = &nwildcard,
338                 .maxlen   = sizeof(int),
339                 .mode     = 0444,
340                 .proc_handler = &proc_dointvec
341         },
342         {
343                 INIT_CTL_NAME
344                 .procname = "bte_relaxed_ordering",
345                 .data     = &bte_relaxed_ordering,
346                 .maxlen   = sizeof(int),
347                 .mode     = 0644,
348                 .proc_handler = &proc_dointvec
349         },
350         {
351                 INIT_CTL_NAME
352                 .procname = "checksum_dump",
353                 .data     = &checksum_dump,
354                 .maxlen   = sizeof(int),
355                 .mode     = 0644,
356                 .proc_handler = &proc_dointvec
357         },
358         {
359                 INIT_CTL_NAME
360                 .procname = "nice",
361                 .data     = &nice,
362                 .maxlen   = sizeof(int),
363                 .mode     = 0444,
364                 .proc_handler = &proc_dointvec
365         },
366         {
367                 INIT_CTL_NAME
368                 .procname = "rdmaq_intervals",
369                 .data     = &rdmaq_intervals,
370                 .maxlen   = sizeof(int),
371                 .mode     = 0644,
372                 .proc_handler = &proc_dointvec
373         },
374         {
375                 INIT_CTL_NAME
376                 .procname = "loops",
377                 .data     = &loops,
378                 .maxlen   = sizeof(int),
379                 .mode     = 0644,
380                 .proc_handler = &proc_dointvec
381         },
382         {
383                 INIT_CTL_NAME
384                 .procname = "hash_size",
385                 .data     = &hash_size,
386                 .maxlen   = sizeof(int),
387                 .mode     = 0444,
388                 .proc_handler = &proc_dointvec
389         },
390         {
391                 INIT_CTL_NAME
392                 .procname = "peer_health",
393                 .data     = &peer_health,
394                 .maxlen   = sizeof(int),
395                 .mode     = 0444,
396                 .proc_handler = &proc_dointvec
397         },
398         {
399                 INIT_CTL_NAME
400                 .procname = "vmap_cksum",
401                 .data     = &vmap_cksum,
402                 .maxlen   = sizeof(int),
403                 .mode     = 0644,
404                 .proc_handler = &proc_dointvec
405         },
406         {
407                 INIT_CTL_NAME
408                 .procname = "mbox_per_block",
409                 .data     = &mbox_per_block,
410                 .maxlen   = sizeof(int),
411                 .mode     = 0644,
412                 .proc_handler = &proc_dointvec
413         },
414         {
415                 INIT_CTL_NAME
416                 .procname = "mbox_credits"
417                 .data     = &mbox_credits,
418                 .maxlen   = sizeof(int),
419                 .mode     = 0644,
420                 .proc_handler = &proc_dointvec
421         },
422         {
423                 INIT_CTL_NAME
424                 .procname = "sched_threads"
425                 .data     = &sched_threads,
426                 .maxlen   = sizeof(int),
427                 .mode     = 0444,
428                 .proc_handler = &proc_dointvec
429         },
430         {
431                 INIT_CTL_NAME
432                 .procname = "net_hash_size",
433                 .data     = &net_hash_size,
434                 .maxlen   = sizeof(int),
435                 .mode     = 0444,
436                 .proc_handler = &proc_dointvec
437         },
438         {
439                 INIT_CTL_NAME
440                 .procname = "hardware_timeout",
441                 .data     = &hardware_timeout,
442                 .maxlen   = sizeof(int),
443                 .mode     = 0444,
444                 .proc_handler = &proc_dointvec
445         },
446         {
447                 INIT_CTL_NAME
448                 .procname = "mdd_timeout",
449                 .data     = &mdd_timeout,
450                 .maxlen   = sizeof(int),
451                 .mode     = 0644,
452                 .proc_handler = &proc_dointvec
453         },
454         {
455                 INIT_CTL_NAME
456                 .procname = "max_retransmits"
457                 .data     = &max_retransmits,
458                 .maxlen   = sizeof(int),
459                 .mode     = 0444,
460                 .proc_handler = &proc_dointvec
461         },
462         {
463                 INIT_CTL_NAME
464                 .procname = "concurrent_sends",
465                 .data     = &concurrent_sends,
466                 .maxlen   = sizeof(int),
467                 .mode     = 0444,
468                 .proc_handler = &proc_dointvec
469         },
470         {
471                 INIT_CTL_NAME
472                 .procname = "nphys_mbox",
473                 .data     = &nphys_mbox,
474                 .maxlen   = sizeof(int),
475                 .mode     = 0444,
476                 .proc_handler = &proc_dointvec
477         },
478         {
479                 INIT_CTL_NAME
480                 .procname = "sched_timeout",
481                 .data     = &sched_timeout,
482                 .maxlen   = sizeof(int),
483                 .mode     = 0644,
484                 .proc_handler = &proc_dointvec
485         },
486         {
487                 INIT_CTL_NAME
488                 .procname = "sched_nice",
489                 .data     = &sched_nice,
490                 .maxlen   = sizeof(int),
491                 .mode     = 0444,
492                 .proc_handler = &proc_dointvec
493         },
494         {
495                 INIT_CTL_NAME
496                 .procname = "reverse_rdma",
497                 .data     = &reverse_rdma,
498                 .maxlen   = sizeof(int),
499                 .mode     = 0644,
500                 .proc_handler = &proc_dointvec
501         },
502                 INIT_CTL_NAME
503                 .procname = "dgram_timeout"
504                 .data     = &dgram_timeout,
505                 .maxlen   = sizeof(int),
506                 .mode     = 0644,
507                 .proc_handler = &proc_dointvec
508         },
509         {
510                 INIT_CTL_NAME
511                 .procname = "peer_timeout"
512                 .data     = &peer_timeout,
513                 .maxlen   = sizeof(int),
514                 .mode     = 0444,
515                 .proc_handler = &proc_dointvec
516         },
517         {
518                 INIT_CTL_NAME
519                 .procname = "eager_credits",
520                 .data     = &eager_credits,
521                 .maxlen   = sizeof(int),
522                 .mode     = 0644,
523                 .proc_handler = &proc_dointvec
524         },
525         {
526                 INIT_CTL_NAME
527                 .procname = "efault_lbug"
528                 .data     = &efault_lbug,
529                 .maxlen   = sizeof(int),
530                 .mode     = 0644,
531                 .proc_handler = &proc_dointvec
532         },
533         {
534                 INIT_CTL_NAME
535                 .procname = "thread_affinity"
536                 .data     = &thread_affinity,
537                 .maxlen   = sizeof(int),
538                 .mode     = 0444,
539                 .proc_handler = &proc_dointvec
540         },
541         {
542                 INIT_CTL_NAME
543                 .procname = "thread_safe"
544                 .data     = &thread_safe,
545                 .maxlen   = sizeof(int),
546                 .mode     = 0444,
547                 .proc_handler = &proc_dointvec
548         },
549         {
550                 INIT_CTL_NAME
551                 .procname = "max_conn_purg"
552                 .data     = &max_conn_purg,
553                 .maxlen   = sizeof(int),
554                 .mode     = 0644,
555                 .proc_handler = &proc_dointvec
556         },
557         { 0 }
558 };
559
560 static struct ctl_table kgnilnd_top_ctl_table[] = {
561         {
562                 INIT_CTL_NAME
563                 .procname = "gnilnd",
564                 .data     = NULL,
565                 .maxlen   = 0,
566                 .mode     = 0555,
567                 .child    = kgnilnd_ctl_table
568         },
569         { 0 }
570 };
571 #endif
572
573 int
574 kgnilnd_tunables_init()
575 {
576         int rc = 0;
577
578 #if CONFIG_SYSCTL && !CFS_SYSFS_MODULE_PARM
579         kgnilnd_tunables.kgn_sysctl =
580                 register_sysctl_table(kgnilnd_top_ctl_table, 0);
581
582         if (kgnilnd_tunables.kgn_sysctl == NULL)
583                 CWARN("Can't setup /proc tunables\n");
584 #endif
585         switch (*kgnilnd_tunables.kgn_checksum) {
586         default:
587                 CERROR("Invalid checksum module parameter: %d\n",
588                        *kgnilnd_tunables.kgn_checksum);
589                 rc = -EINVAL;
590                 GOTO(out, rc);
591         case GNILND_CHECKSUM_OFF:
592                 /* no checksumming */
593                 break;
594         case GNILND_CHECKSUM_SMSG_HEADER:
595                 LCONSOLE_INFO("SMSG header only checksumming enabled\n");
596                 break;
597         case GNILND_CHECKSUM_SMSG:
598                 LCONSOLE_INFO("SMSG checksumming enabled\n");
599                 break;
600         case GNILND_CHECKSUM_SMSG_BTE:
601                 LCONSOLE_INFO("SMSG + BTE checksumming enabled\n");
602                 break;
603         }
604
605         if (*kgnilnd_tunables.kgn_max_immediate > GNILND_MAX_IMMEDIATE) {
606                 LCONSOLE_ERROR("kgnilnd module parameter 'max_immediate' too large %d > %d\n",
607                 *kgnilnd_tunables.kgn_max_immediate, GNILND_MAX_IMMEDIATE);
608                 rc = -EINVAL;
609                 GOTO(out, rc);
610         }
611
612         if (*kgnilnd_tunables.kgn_mbox_per_block < 1) {
613                 *kgnilnd_tunables.kgn_mbox_per_block = 1;
614         }
615
616         if (*kgnilnd_tunables.kgn_concurrent_sends == 0) {
617                 *kgnilnd_tunables.kgn_concurrent_sends = *kgnilnd_tunables.kgn_peer_credits;
618         } else if (*kgnilnd_tunables.kgn_concurrent_sends > *kgnilnd_tunables.kgn_peer_credits) {
619                 LCONSOLE_ERROR("kgnilnd parameter 'concurrent_sends' too large: %d > %d (peer_credits)\n",
620                                *kgnilnd_tunables.kgn_concurrent_sends, *kgnilnd_tunables.kgn_peer_credits);
621                 rc = -EINVAL;
622         }
623 out:
624         return rc;
625 }
626
627 void
628 kgnilnd_tunables_fini()
629 {
630 #if CONFIG_SYSCTL && !CFS_SYSFS_MODULE_PARM
631         if (kgnilnd_tunables.kgn_sysctl != NULL)
632                 unregister_sysctl_table(kgnilnd_tunables.kgn_sysctl);
633 #endif
634 }