Re: [PATCH 3/3] posix timers: use SIGQUEUE_CANCELLED when the timer is destroyed

From: Roland McGrath
Date: Tue May 20 2008 - 22:28:20 EST


> q->flags |= SIGQUEUE_CANCELLED;
> spin_lock_irqsave(lock, flags);
> q->flags &= ~SIGQUEUE_PREALLOC;

Just make it:

spin_lock_irqsave(lock, flags);
q->flags |= SIGQUEUE_CANCELLED;
q->flags &= ~SIGQUEUE_PREALLOC;

and we needn't wax philosophical about the meaning of locking rules. That
patch would have my ACK, but I concur with Linus about the undesireability
of the plain = version.


Thanks,
Roland
--
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/