connection: add comment on init_poll_funcptr()
authorDaniel Mack <daniel@zonque.org>
Fri, 19 Dec 2014 18:47:52 +0000 (19:47 +0100)
committerDaniel Mack <daniel@zonque.org>
Fri, 19 Dec 2014 18:47:52 +0000 (19:47 +0100)
Signed-off-by: Daniel Mack <daniel@zonque.org>
connection.c

index 82968ac9137f2d8c7f211397e0c4a8b165a262db..1a07edaa6d1e2ded02c9c554f8ae074a9eb8817a 100644 (file)
@@ -709,6 +709,11 @@ static int kdbus_conn_wait_reply(struct kdbus_conn *conn_src,
                        break;
                }
 
+               /*
+                * Reset the poll worker func, so the waitqueues are not
+                * added to the poll table again. We just reuse what we've
+                * collected earlier for further iterations.
+                */
                init_poll_funcptr(&pwq.pt, NULL);
        }