• Home
  • Raw
  • Download

Lines Matching refs:info

144 	struct kmod_test_device_info *info;  member
195 static void test_kmod_put_module(struct kmod_test_device_info *info) in test_kmod_put_module() argument
197 struct kmod_test_device *test_dev = info->test_dev; in test_kmod_put_module()
200 if (!info->need_mod_put) in test_kmod_put_module()
207 if (info && info->fs_sync && info->fs_sync->owner) in test_kmod_put_module()
208 module_put(info->fs_sync->owner); in test_kmod_put_module()
214 info->need_mod_put = true; in test_kmod_put_module()
219 struct kmod_test_device_info *info = data; in run_request() local
220 struct kmod_test_device *test_dev = info->test_dev; in run_request()
225 info->ret_sync = request_module("%s", config->test_driver); in run_request()
228 info->fs_sync = get_fs_type(config->test_fs); in run_request()
229 info->need_mod_put = true; in run_request()
237 dev_dbg(test_dev->dev, "Ran thread %u\n", info->thread_idx); in run_request()
239 test_kmod_put_module(info); in run_request()
242 info->task_sync = NULL; in run_request()
243 kmod_test_done_check(test_dev, info->thread_idx); in run_request()
249 static int tally_work_test(struct kmod_test_device_info *info) in tally_work_test() argument
251 struct kmod_test_device *test_dev = info->test_dev; in tally_work_test()
261 if (info->ret_sync != 0) in tally_work_test()
262 err_ret = info->ret_sync; in tally_work_test()
265 info->thread_idx, info->ret_sync); in tally_work_test()
269 if (!info->fs_sync) in tally_work_test()
272 info->thread_idx, info->fs_sync ? config->test_fs : in tally_work_test()
294 struct kmod_test_device_info *info; in tally_up_work() local
304 info = &test_dev->info[idx]; in tally_up_work()
305 ret = tally_work_test(info); in tally_up_work()
321 struct kmod_test_device_info *info = &test_dev->info[idx]; in try_one_request() local
326 info->thread_idx = idx; in try_one_request()
327 info->test_dev = test_dev; in try_one_request()
328 info->task_sync = kthread_run(run_request, info, "%s-%u", in try_one_request()
331 if (!info->task_sync || IS_ERR(info->task_sync)) { in try_one_request()
334 info->task_sync = NULL; in try_one_request()
344 info->ret_sync = fail_ret; in try_one_request()
353 struct kmod_test_device_info *info; in test_dev_kmod_stop_tests() local
361 info = &test_dev->info[i]; in test_dev_kmod_stop_tests()
362 if (info->task_sync && !IS_ERR(info->task_sync)) { in test_dev_kmod_stop_tests()
365 kthread_stop(info->task_sync); in test_dev_kmod_stop_tests()
375 if (info->task_sync && info->need_mod_put) in test_dev_kmod_stop_tests()
376 test_kmod_put_module(info); in test_dev_kmod_stop_tests()
773 vfree(test_dev->info); in free_test_dev_info()
774 test_dev->info = NULL; in free_test_dev_info()
782 test_dev->info = in kmod_config_sync_info()
785 if (!test_dev->info) in kmod_config_sync_info()