Re: Pull request for semaphore include changes

From: Matthew Wilcox
Date: Wed Apr 23 2008 - 12:04:06 EST


On Wed, Apr 23, 2008 at 08:57:24AM -0700, Roland Dreier wrote:
> > drivers/infiniband/core/user_mad.c | 2 +-
>
> Let me say up front I have no problem with this change, which moved from
> <asm/semaphore.h> to <linux/semaphore.h>. So take this email as an
> honest question and not any form of complaint or criticism. But looking
> at that user_mad.c file in particular, I don't see any use of anything
> that looks like it would come from semaphore.h.

You've missed this hunk:

if (filp->f_flags & O_NONBLOCK) {
if (down_trylock(&port->sm_sem)) {
ret = -EAGAIN;
goto fail;
}
} else {
if (down_interruptible(&port->sm_sem)) {
ret = -ERESTARTSYS;
goto fail;
}
}

which is still in Linus' tree as of last night.

--
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."
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/