Whamcloud - gitweb
LU-5556 target: limit bulk transfer time
[fs/lustre-release.git] / lustre / obdclass / linux / linux-sysctl.c
index e298a3a..326218f 100644 (file)
@@ -233,6 +233,10 @@ int proc_alloc_fail_rate(struct ctl_table *table, int write,
 }
 #endif
 
+int LL_PROC_PROTO(proc_bulk_timeout)
+{
+       return proc_dointvec(table, write, buffer, lenp, ppos);
+}
 int LL_PROC_PROTO(proc_at_min)
 {
        return proc_dointvec(table, write, buffer, lenp, ppos);
@@ -348,6 +352,14 @@ static struct ctl_table obd_table[] = {
        },
        {
                INIT_CTL_NAME
+               .procname       = "bulk_timeout",
+               .data           = &bulk_timeout,
+               .maxlen         = sizeof(int),
+               .mode           = 0644,
+               .proc_handler   = &proc_bulk_timeout
+       },
+       {
+               INIT_CTL_NAME
                .procname       = "at_min",
                .data           = &at_min,
                .maxlen         = sizeof(int),