159 * reconfig or hot-plug of a new adapter.
160 *
161 * kfio_report_error (default 0)
162 * Set to 1 to enable some error messages related to low-level
163 * kernel file i/o operations.
164 *
165 * nvpflush_delay (default 10)
166 * The number of seconds after data is marked dirty before the
167 * flush daemon is triggered to flush the data. A longer period
168 * of time permits more data updates per write. Note that
169 * every update resets the timer so no repository write will
170 * occur while data is being updated continuously.
171 *
172 * nvpdaemon_idle_time (default 60)
173 * The number of seconds the daemon will sleep idle before exiting.
174 *
175 */
176 #define NVPFLUSH_DELAY 10
177 #define NVPDAEMON_IDLE_TIME 60
178
179 #define TICKS_PER_SECOND (drv_usectohz(1000000))
180
181 /*
182 * Tunables
183 */
184 int kfio_report_error = 0; /* kernel file i/o operations */
185 int kfio_disable_read = 0; /* disable all reads */
186 int kfio_disable_write = 0; /* disable all writes */
187
188 int nvpflush_delay = NVPFLUSH_DELAY;
189 int nvpdaemon_idle_time = NVPDAEMON_IDLE_TIME;
190
191 static timeout_id_t nvpflush_id = 0;
192 static int nvpflush_timer_busy = 0;
193 static int nvpflush_daemon_active = 0;
194 static kthread_t *nvpflush_thr_id = 0;
195
196 static int do_nvpflush = 0;
197 static int nvpbusy = 0;
198 static kmutex_t nvpflush_lock;
199 static kcondvar_t nvpflush_cv;
|
159 * reconfig or hot-plug of a new adapter.
160 *
161 * kfio_report_error (default 0)
162 * Set to 1 to enable some error messages related to low-level
163 * kernel file i/o operations.
164 *
165 * nvpflush_delay (default 10)
166 * The number of seconds after data is marked dirty before the
167 * flush daemon is triggered to flush the data. A longer period
168 * of time permits more data updates per write. Note that
169 * every update resets the timer so no repository write will
170 * occur while data is being updated continuously.
171 *
172 * nvpdaemon_idle_time (default 60)
173 * The number of seconds the daemon will sleep idle before exiting.
174 *
175 */
176 #define NVPFLUSH_DELAY 10
177 #define NVPDAEMON_IDLE_TIME 60
178
179 #define TICKS_PER_SECOND drv_sectohz(1)
180
181 /*
182 * Tunables
183 */
184 int kfio_report_error = 0; /* kernel file i/o operations */
185 int kfio_disable_read = 0; /* disable all reads */
186 int kfio_disable_write = 0; /* disable all writes */
187
188 int nvpflush_delay = NVPFLUSH_DELAY;
189 int nvpdaemon_idle_time = NVPDAEMON_IDLE_TIME;
190
191 static timeout_id_t nvpflush_id = 0;
192 static int nvpflush_timer_busy = 0;
193 static int nvpflush_daemon_active = 0;
194 static kthread_t *nvpflush_thr_id = 0;
195
196 static int do_nvpflush = 0;
197 static int nvpbusy = 0;
198 static kmutex_t nvpflush_lock;
199 static kcondvar_t nvpflush_cv;
|