Whamcloud - gitweb
LU-10603 ptlrpc: export req_buffers_max via procfs 62/31162/2
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Mon, 5 Feb 2018 10:03:17 +0000 (13:03 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 22 Feb 2018 05:40:43 +0000 (05:40 +0000)
after LU-9372 gcc7 complains:
lustre/ptlrpc/lproc_ptlrpc.c:382:16: error: ‘ptlrpc_lprocfs_req_buffers_max_fops’ defined but not used [-Werror=unused-const-variable=]
 LPROC_SEQ_FOPS(ptlrpc_lprocfs_req_buffers_max);
                 ^

Change-Id: Ie4806b79d104c7ea9aa34b6a8a280587fccef689
Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-on: https://review.whamcloud.com/31162
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/lproc_ptlrpc.c

index 0221c5e..1c3aab7 100644 (file)
@@ -1196,6 +1196,9 @@ void ptlrpc_lprocfs_register_service(struct proc_dir_entry *entry,
                { .name = "nrs_policies",
                  .fops = &ptlrpc_lprocfs_nrs_fops,
                  .data = svc },
+               { .name = "req_buffers_max",
+                 .fops = &ptlrpc_lprocfs_req_buffers_max_fops,
+                 .data = svc },
                { NULL }
         };
         static struct file_operations req_history_fops = {