[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20061219213134.GA16619@elte.hu>
Date: Tue, 19 Dec 2006 22:31:34 +0100
From: Ingo Molnar <mingo@...e.hu>
To: Linus Torvalds <torvalds@...l.org>
Cc: linux-kernel@...r.kernel.org
Subject: [patch] workqueue: fix drivers/connector/connector.c
Subject: [patch] workqueue: fix drivers/connector/connector.c
From: Ingo Molnar <mingo@...e.hu>
commit c4028958b6ecad064b1a6303a6a5906d4fe48d73 did an incorrect
conversion of the work-pending check in the connector device (which
device is enabled in the -rt kernel rpm) - fix this by using
work_pending().
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
drivers/connector/connector.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Index: linux/drivers/connector/connector.c
===================================================================
--- linux.orig/drivers/connector/connector.c
+++ linux/drivers/connector/connector.c
@@ -135,8 +135,7 @@ static int cn_call_callback(struct cn_ms
spin_lock_bh(&dev->cbdev->queue_lock);
list_for_each_entry(__cbq, &dev->cbdev->queue_list, callback_entry) {
if (cn_cb_equal(&__cbq->id.id, &msg->id)) {
- if (likely(!test_bit(WORK_STRUCT_PENDING,
- &__cbq->work.work.management) &&
+ if (likely(!work_pending(&__cbq->work.work) &&
__cbq->data.ddata == NULL)) {
__cbq->data.callback_priv = msg;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists