Linus Torvalds c3921ab715 Add new 'cond_resched_bkl()' helper function
It acts exactly like a regular 'cond_resched()', but will not get
optimized away when CONFIG_PREEMPT is set.

Normal kernel code is already preemptable in the presense of
CONFIG_PREEMPT, so cond_resched() is optimized away (see commit
02b67cc3ba36bdba351d6c3a00593f4ec550d9d3 "sched: do not do
cond_resched() when CONFIG_PREEMPT").

But when wanting to conditionally reschedule while holding a lock, you
need to use "cond_sched_lock(lock)", and the new function is the BKL
equivalent of that.

Also make fs/locks.c use it.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-05-11 16:04:48 -07:00
..
2008-02-08 09:22:40 -08:00
2008-05-01 08:04:01 -07:00
2008-05-09 03:48:05 +00:00
2008-04-29 08:06:04 -07:00
2008-04-29 08:06:00 -07:00
2008-04-30 08:29:52 -07:00
2008-02-08 09:22:40 -08:00
2008-03-19 06:42:18 -04:00
2008-04-29 08:06:18 -07:00
2007-10-18 14:37:31 -07:00
2008-04-30 08:29:51 -07:00
2008-04-30 08:29:52 -07:00
2008-04-28 08:58:45 -07:00
2008-04-29 08:06:17 -07:00
2008-05-07 18:35:03 +02:00
2008-01-30 13:31:46 +01:00
2008-04-30 08:29:47 -07:00
2008-05-01 13:08:16 -04:00
2008-05-01 13:08:16 -04:00
2008-05-01 13:08:50 -04:00
2008-05-01 13:08:16 -04:00
2008-05-01 13:08:16 -04:00
2007-05-21 09:18:19 -07:00
2008-05-01 13:08:16 -04:00
2008-05-01 13:08:57 -04:00
2007-05-08 11:15:01 -07:00
2008-05-06 13:13:37 -07:00
2008-02-06 10:41:07 -08:00
2008-04-29 08:06:00 -07:00
2008-04-30 13:38:47 +02:00
2008-04-29 08:06:01 -07:00
2008-01-30 13:31:46 +01:00
2008-04-29 08:06:09 -07:00
2008-02-14 21:13:33 -08:00
2008-05-01 13:08:16 -04:00
2008-05-08 10:46:56 -07:00
2006-10-01 00:39:19 -07:00
2008-04-30 08:29:51 -07:00
2008-05-01 13:08:16 -04:00
2008-05-01 13:08:50 -04:00
2008-05-08 14:06:19 +02:00
2008-02-14 21:13:33 -08:00
2008-04-29 08:06:00 -07:00
2008-05-01 13:08:50 -04:00