This is a note to let you know that I've just added the patch titled

    Bluetooth: Remove unneeded locking

to the 3.3-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     bluetooth-remove-unneeded-locking.patch
and it can be found in the queue-3.3 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From e72acc13c770a82b4ce4a07e9716f29320eae0f8 Mon Sep 17 00:00:00 2001
From: Andre Guedes <[email protected]>
Date: Fri, 27 Jan 2012 19:42:03 -0300
Subject: Bluetooth: Remove unneeded locking

From: Andre Guedes <[email protected]>

commit e72acc13c770a82b4ce4a07e9716f29320eae0f8 upstream.

We don't need locking hdev in hci_conn_timeout() since it doesn't
access any hdev's shared resources, it basically queues HCI commands.

Signed-off-by: Andre Guedes <[email protected]>
Signed-off-by: Vinicius Costa Gomes <[email protected]>
Reviewed-by: Ulisses Furquim <[email protected]>
Acked-by: Marcel Holtmann <[email protected]>
Signed-off-by: Johan Hedberg <[email protected]>
Tested-by: Alexander Holler <[email protected]>
[reported to fix lockups on battery-powered bluetooth devices - gregkh]
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 net/bluetooth/hci_conn.c |    5 -----
 1 file changed, 5 deletions(-)

--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -279,7 +279,6 @@ static void hci_conn_timeout(struct work
 {
        struct hci_conn *conn = container_of(work, struct hci_conn,
                                                        disc_work.work);
-       struct hci_dev *hdev = conn->hdev;
        __u8 reason;
 
        BT_DBG("conn %p state %d", conn, conn->state);
@@ -287,8 +286,6 @@ static void hci_conn_timeout(struct work
        if (atomic_read(&conn->refcnt))
                return;
 
-       hci_dev_lock(hdev);
-
        switch (conn->state) {
        case BT_CONNECT:
        case BT_CONNECT2:
@@ -308,8 +305,6 @@ static void hci_conn_timeout(struct work
                conn->state = BT_CLOSED;
                break;
        }
-
-       hci_dev_unlock(hdev);
 }
 
 /* Enter sniff mode */


Patches currently in stable-queue which might be from 
[email protected] are

queue-3.3/bluetooth-remove-unneeded-locking.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to