Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=efba1a31f3f8fe9672eb96cd26e97fb96891f1c0
Commit:     efba1a31f3f8fe9672eb96cd26e97fb96891f1c0
Parent:     e7d72173248c29c6f9ba14e40374266e1b954964
Author:     FUJITA Tomonori <[EMAIL PROTECTED]>
AuthorDate: Thu Jun 7 13:24:06 2007 +0200
Committer:  Jens Axboe <[EMAIL PROTECTED]>
CommitDate: Mon Jul 16 08:52:46 2007 +0200

    bsg: fix the deadlock on discarding done commands
    
    The previous commit introduced a deadlock in discarding commands,
    because we forget to unlock the bd spinlock.
    
    Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]>
    Signed-off-by: Jens Axboe <[EMAIL PROTECTED]>
---
 block/bsg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/block/bsg.c b/block/bsg.c
index 2f78d7d..5f4abc9 100644
--- a/block/bsg.c
+++ b/block/bsg.c
@@ -471,6 +471,7 @@ static int bsg_complete_all_commands(struct bsg_device *bd)
                        spin_unlock_irq(&bd->lock);
                        break;
                }
+               spin_unlock_irq(&bd->lock);
 
                bc = bsg_get_done_cmd(bd);
                if (IS_ERR(bc))
-
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