Re: locking in hidraw
From: Jiri Slaby <hidden>
Date: 2008-11-04 20:36:41
From: Jiri Slaby <hidden>
Date: 2008-11-04 20:36:41
Ccing jikos. Oliver Neukum napsal(a):
Hi,
in this code:
mutex_lock(&list->read_mutex);
if (list->head == list->tail) {
add_wait_queue(&list->hidraw->wait, &wait);
set_current_state(TASK_INTERRUPTIBLE);
it would make more sense to lock the mutex interruptable so all
tasks sleep the same way. Is this intentional?