From: Dave Young <hidave.darkstar@gmail.com>
To: gregkh@suse.de
Cc: linux-kernel@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz
Subject: [PATCH 06/12] pci : Use mutex instead of semaphore in driver core
Date: Sat, 29 Dec 2007 09:10:57 +0800 [thread overview]
Message-ID: <20071229011057.GG2883@darkstar.te-china.tietoenator.com> (raw)
Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
---
drivers/pci/bus.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -upr linux/drivers/pci/bus.c linux.new/drivers/pci/bus.c
--- linux/drivers/pci/bus.c 2007-12-28 10:25:07.000000000 +0800
+++ linux.new/drivers/pci/bus.c 2007-12-28 10:28:56.000000000 +0800
@@ -207,9 +207,9 @@ void pci_walk_bus(struct pci_bus *top, v
next = dev->bus_list.next;
/* Run device routines with the device locked */
- down(&dev->dev.sem);
+ mutex_lock(&dev->dev.mutex);
cb(dev, userdata);
- up(&dev->dev.sem);
+ mutex_unlock(&dev->dev.mutex);
}
up_read(&pci_bus_sem);
}
next reply other threads:[~2007-12-29 1:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-29 1:10 Dave Young [this message]
2007-12-29 2:55 ` Matthew Wilcox
2007-12-29 5:08 ` Dave Young
2007-12-29 11:42 ` Stefan Richter
2007-12-29 12:16 ` Matthew Wilcox
2007-12-29 12:38 ` Stefan Richter
2008-01-02 2:29 ` Dave Young
2008-01-02 11:14 ` The perfect patch - Posting a patch series (was Re: [PATCH 06/12] pci : Use mutex instead of semaphore in driver core) Stefan Richter
2008-01-02 11:41 ` Jan Engelhardt
2008-01-02 13:05 ` The perfect patch - Posting a patch series Stefan Richter
2008-01-03 6:10 ` The perfect patch - Posting a patch series (was Re: [PATCH 06/12] pci : Use mutex instead of semaphore in driver core) Dave Young
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071229011057.GG2883@darkstar.te-china.tietoenator.com \
--to=hidave.darkstar@gmail.com \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@atrey.karlin.mff.cuni.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®