Re: [PATCH 1/3] PCI: vpd handle longer delays in access

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthew Wilcox
Date: Friday, September 5, 2008 - 5:40 am

On Thu, Sep 04, 2008 at 01:56:37PM -0700, Stephen Hemminger wrote:

If you're going to use _killable instead of _interruptible, this needs
to be fatal_signal_pending().  Otherwise the one who owns the lock can
be interrupted by _any_ signal while those waiting for the lock can only
be interrupted by fatal signals.  Which seems daft to me.


What's wrong with the shorter:

	if (mutex_lock_killable(&vpd->lock))
		return -EINTR;
?

The actual error is irrelevant here since userspace will never consume it.

(I agree with Peter about use of yield())

-- 
Matthew Wilcox				Intel Open Source Technology Centre
"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."
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/3] PCI: vpd handle longer delays in access, Stephen Hemminger, (Thu Sep 4, 1:56 pm)
Re: [PATCH 1/3] PCI: vpd handle longer delays in access, Peter Zijlstra, (Fri Sep 5, 2:11 am)
Re: [PATCH 1/3] PCI: vpd handle longer delays in access, Matthew Wilcox, (Fri Sep 5, 5:40 am)
Re: [PATCH 1/3] PCI: vpd handle longer delays in access, Andrew Morton, (Mon Sep 8, 1:40 pm)
Re: [PATCH 1/3] PCI: vpd handle longer delays in access, Stephen Hemminger, (Mon Sep 8, 2:08 pm)
Re: [PATCH 1/3] PCI: vpd handle longer delays in access, Arjan van de Ven, (Mon Sep 8, 2:26 pm)
Re: [PATCH 1/3] PCI: vpd handle longer delays in access, Stephen Hemminger, (Tue Sep 9, 9:55 am)
Re: [PATCH 1/3] PCI: vpd handle longer delays in access, Arjan van de Ven, (Tue Sep 9, 10:01 am)