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.
-- Daniel - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to email@example.com More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/