Dear All,

Isn't there problem in this code snippet?
wake_up will called even before releasing spin lock.
If there are sleeping threads/processes, they will
wakeup and spinlock is never be unlocked. Am I wrong?

spin_lock(&ud->lock);
ud->event |= event;
wake_up(&ud->eh_waitq);
spin_unlock(&ud->lock);

Thanks
Best Regards
Himanshu

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to