summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/tests/stresstest.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/tests/stresstest.c')
-rw-r--r--drivers/mtd/tests/stresstest.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mtd/tests/stresstest.c b/drivers/mtd/tests/stresstest.c
index d90c1c01dac6..e509f8aa9a7e 100644
--- a/drivers/mtd/tests/stresstest.c
+++ b/drivers/mtd/tests/stresstest.c
@@ -221,7 +221,10 @@ static int __init mtd_stresstest_init(void)
err = do_operation();
if (err)
goto out;
- cond_resched();
+
+ err = mtdtest_relax();
+ if (err)
+ goto out;
}
pr_info("finished, %d operations done\n", op);