All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: Dave Young <hidave.darkstar@gmail.com>
Cc: gregkh@suse.de, linux-kernel@vger.kernel.org,
	linux-pci@atrey.karlin.mff.cuni.cz
Subject: Re: [PATCH 06/12] pci : Use mutex instead of semaphore in driver core
Date: Fri, 28 Dec 2007 19:55:07 -0700	[thread overview]
Message-ID: <20071229025506.GL11638@parisc-linux.org> (raw)
In-Reply-To: <20071229011057.GG2883@darkstar.te-china.tietoenator.com>

On Sat, Dec 29, 2007 at 09:10:57AM +0800, Dave Young wrote:
> @@ -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);
>  }

Patches should be self-contained for ease of bisecting.  I can't tell
whether this patch is correct or not because you haven't included all
the other places that need to change at the same time as this.

-- 
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."

  reply	other threads:[~2007-12-29  2:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=20071229025506.GL11638@parisc-linux.org \
    --to=matthew@wil.cx \
    --cc=gregkh@suse.de \
    --cc=hidave.darkstar@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.