[lkml]   [2003]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch] futex requeueing feature, futex-requeue-2.5.69-D3
In message <> you write:
> Rusty Russell wrote:
> > 1) Overload the last futex arg (change from timeval * to void *),
> > don't add YA arg at the end.
> It wasn't Ingo's idea. I suggested it. Overloading parameter types is
> evil. This isn't an issue anymore if the extension is implemented as a
> new syscall which certainly is better.

People are using the interface, so I don't think changing it because
"it's nicer this way" is worthwhile: Ingo's "new syscall" patch has
backwards compat code for the old syscalls. That's fugly 8(

So I'd say if we're going to multiplex, then overloading is easiest,
and in fact already done for FUTEX_FD.

But it's an issue over which sane people can disagree, IMHO.

> > 2) Use __alignof__(u32) not sizeof(u32). Sure, they're the same, but
> > you really mean __alignof__ here.
> I would always use sizeof() in this situation.

Comment says: /* Must be "naturally" aligned */. This used to be true
in a much earlier version of the code, now AFAICT the requirement test
should be:

/* Handling futexes on multiple pages? -ETOOHARD */
if (pos_in_page + sizeof(u32) > PAGE_SIZE)
return -EINVAL;


Thanks for the comments!
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:35    [W:0.041 / U:0.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site