Skip to content

Commit

Permalink
[PATCH] lightweight robust futexes updates 2
Browse files Browse the repository at this point in the history
futex.h updates:

- get rid of FUTEX_OWNER_PENDING - it's not used
- reduce ROBUST_LIST_LIMIT to a saner value

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Mar 27, 2006
1 parent 8f17d3a commit 76b81e2
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions include/linux/futex.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,16 @@ struct robust_list_head {
*/
#define FUTEX_OWNER_DIED 0x40000000

/*
* Reserved bit:
*/
#define FUTEX_OWNER_PENDING 0x20000000

/*
* The rest of the robust-futex field is for the TID:
*/
#define FUTEX_TID_MASK 0x1fffffff
#define FUTEX_TID_MASK 0x3fffffff

/*
* A limit of one million locks held per thread (!) ought to be enough
* for some time. This also protects against a deliberately circular
* list. Not worth introducing an rlimit for this:
* This limit protects against a deliberately circular list.
* (Not worth introducing an rlimit for it)
*/
#define ROBUST_LIST_LIMIT 1048576
#define ROBUST_LIST_LIMIT 2048

long do_futex(unsigned long uaddr, int op, int val,
unsigned long timeout, unsigned long uaddr2, int val2,
Expand Down

0 comments on commit 76b81e2

Please sign in to comment.