Commit 19c6b6ed3f597a583f58e3fc99256cc01ae8c394

Authored by Andrew Morton
Committed by Linus Torvalds
1 parent f46c483357

[PATCH] schedule removal of FUTEX_FD

Apparently FUTEX_FD is unfixably racy and nothing uses it (or if it does, it
shouldn't).

Add a warning printk, give any remaining users six months to migrate off it.

Cc: Ulrich Drepper <drepper@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff

... ... @@ -1507,6 +1507,13 @@
1507 1507 struct futex_q *q;
1508 1508 struct file *filp;
1509 1509 int ret, err;
  1510 + static unsigned long printk_interval;
  1511 +
  1512 + if (printk_timed_ratelimit(&printk_interval, 60 * 60 * 1000)) {
  1513 + printk(KERN_WARNING "Process `%s' used FUTEX_FD, which "
  1514 + "will be removed from the kernel in June 2007\n",
  1515 + current->comm);
  1516 + }
1510 1517  
1511 1518 ret = -EINVAL;
1512 1519 if (!valid_signal(signal))