[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dazuko-devel] PATCH 3/3 in unclaim_event() remove item from working lis
From: |
Lino Sanfilippo |
Subject: |
[Dazuko-devel] PATCH 3/3 in unclaim_event() remove item from working list before putting it back on todo list |
Date: |
Tue, 02 Nov 2010 12:43:54 +0100 |
User-agent: |
Mozilla-Thunderbird 2.0.0.24 (X11/20100329) |
This patch removes the event from the "working list" before it is put
back on the "todo list" in unclaim_event().
After the event has been put back to the todo list also the poll queue
is woken up to notify callers of poll() that the event is readable (again).
Geschäftsführender Gesellschafter: Tjark Auerbach
Sitz der Gesellschaft: Tettnang
Handelsregister: Amtsgericht Ulm, HRB 630992
ALLGEMEINE GESCHÄFTSBEDINGUNGEN
Es gelten unsere Allgemeinen Geschäftsbedingungen
(AGB). Sie finden sie in der jeweils gültigen Fassung
im Internet unter http://www.avira.com/de/standard-terms-conditions-business-de
***************************************************
diff -Nurp dazukofs-3.1.4-rc2-patch2/event.c dazukofs-3.1.4-rc2-patch3/event.c
--- dazukofs-3.1.4-rc2-patch2/event.c 2010-11-02 12:02:41.000000000 +0100
+++ dazukofs-3.1.4-rc2-patch3/event.c 2010-11-02 12:17:50.000000000 +0100
@@ -860,11 +860,13 @@ static void unclaim_event(struct dazukof
{
/* put the event on the todo list */
mutex_lock(&work_mutex);
+ list_del(&ec->list);
list_add(&ec->list, &grp->todo_list.list);
mutex_unlock(&work_mutex);
/* wake up someone else to handle the event */
wake_up(&grp->queue);
+ wake_up(&grp->poll_queue);
}
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dazuko-devel] PATCH 3/3 in unclaim_event() remove item from working list before putting it back on todo list,
Lino Sanfilippo <=