[lkml]   [2001]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] (Updated) Preemptible Kernel
On September 6, 2001 10:39 pm, Phillip Susi wrote:
> ... what happens if
> say, the kernel called from user space is holding a lock, and gets preempted?

The thread will eventually get rescheduled and release the lock.

> Is there a mechanism to disable preemption while holding locks or at other
> resources that need to be freed before another task is run?

IIRC spinlocks inhibit scheduling, the simplest way to handle that.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:02    [W:0.039 / U:1.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site