mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 06/12] pci : Use mutex instead of semaphore in driver core
@ 2007-12-29  1:10 Dave Young
  2007-12-29  2:55 ` Matthew Wilcox
  0 siblings, 1 reply; 11+ messages in thread
From: Dave Young @ 2007-12-29  1:10 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, linux-pci

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);
 }

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-01-03  6:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-29  1:10 [PATCH 06/12] pci : Use mutex instead of semaphore in driver core Dave Young
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

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®