On Sat, 17 May 2008, Oleg Nesterov wrote:The only reason I like that better is that it makes me nervous when one re-initializes the whole flags field. So your original 3/3 patch - q->flags &= ~SIGQUEUE_PREALLOC; + q->flags = SIGQUEUE_CANCELLED; /* clears SIGQUEUE_PREALLOC */ just makes me go "Hmm, what about all the other flag bits?" Now, admittedly, there are currently (with your patch) just two SIGQUEUE_xyz bits, so by just doing that single assignment, you really only modify the two bits you want to modify. But maybe that will change. So I'd prefer to either write it as q->flags &= ~SIGQUEUE_PREALLOC; q->flags |= SIGQUEUE_CANCELLED; or to use bitfields, or to do something else to make it safe in the presense of multiple bits. Your alternate patch obviously doesn't have that issue, since it just sets the single bit. But apart from that issue, I have absolutely no preferences either way. You're effectively the maintainer in this area, you get to choose. Linus --
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Yinghai Lu | Re: [GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in mor... |
| Trent Piepho | [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
| Alan Cox | [PATCH 00/76] Queued TTY Patches |
git: | |
| Junio C Hamano | Re: More precise tag following |
| Yossi Leybovich | corrupt object on git-gc |
| bain | [Announce] teamGit v0.0.3 |
| Aaron Bentley | Re: VCS comparison table |
| Nick Guenther | Re: Real men don't attack straw men |
| Brandon Lee | DELL PERC 5iR slow performance |
| Stefan Beke | mail dovecot: pipe() failed: Too many open files |
| Paul Greidanus | Re: [Fwd: Open-Hardware] |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| KOSAKI Motohiro | [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
