|
|
Log in / Subscribe / Register

preempt_lazy?

preempt_lazy?

Posted Jul 4, 2026 19:59 UTC (Sat) by neilbrown (subscriber, #359)
In reply to: preempt_lazy? by meyert
Parent article: Limiting negative dentries

You need to hold a lock to walk the list, so it would be cond_resched_lock() except that if you drop the lock you might lose your place so it really becomes

If (need_resched()) {
       insert_dcache_cursor();
       spin_unlock();
       cond_resched();
       spin_lock();
       remove_cursor();
}


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds