Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=83431cba3d847fc2296d3f38ce7feb623a1cfc45
Commit:     83431cba3d847fc2296d3f38ce7feb623a1cfc45
Parent:     c1b91ce49158d607666dbef5b8d53cd77d397589
Author:     Jay Fenlason <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 8 17:00:29 2007 -0400
Committer:  Stefan Richter <[EMAIL PROTECTED]>
CommitDate: Wed Oct 17 00:00:10 2007 +0200

    firewire: fw-cdev: reorder wakeup vs. spinlock
    
    Signed-off-by: Jay Fenlason <[EMAIL PROTECTED]>
    
    Prompted by https://bugzilla.redhat.com/show_bug.cgi?id=323411
    
    Signed-off-by: Stefan Richter <[EMAIL PROTECTED]>
---
 drivers/firewire/fw-cdev.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/firewire/fw-cdev.c b/drivers/firewire/fw-cdev.c
index 290d9f0..60f1a89 100644
--- a/drivers/firewire/fw-cdev.c
+++ b/drivers/firewire/fw-cdev.c
@@ -143,11 +143,10 @@ static void queue_event(struct client *client, struct 
event *event,
        event->v[1].size = size1;
 
        spin_lock_irqsave(&client->lock, flags);
-
        list_add_tail(&event->link, &client->event_list);
-       wake_up_interruptible(&client->wait);
-
        spin_unlock_irqrestore(&client->lock, flags);
+
+       wake_up_interruptible(&client->wait);
 }
 
 static int
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to