#include <linux/rcupdate.h>
#include <linux/rhashtable.h>
#include <linux/slab.h>
+#include <linux/sched.h>
#define MAX_ENTRIES 1000000
#define TEST_INSERT_FAIL INT_MAX
return -EINVAL;
}
}
+
+ cond_resched_rcu();
}
return 0;
} else if (err) {
return err;
}
+
+ cond_resched();
}
if (insert_fails)
rhashtable_remove_fast(ht, &obj->node, test_rht_params);
}
+
+ cond_resched();
}
end = ktime_get_ns();