Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102987
b: refs/heads/master
c: 338db08
h: refs/heads/master
i:
  102985: bb6d63d
  102983: e621f63
v: v3
  • Loading branch information
David S. Miller committed Jun 17, 2008
1 parent 7027e26 commit 2c06327
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22196d3648581b253f927186b30075fb005287b0
refs/heads/master: 338db085518a8436cdecd33f7b52a06ec16d9ec1
24 changes: 0 additions & 24 deletions trunk/include/net/sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -1331,30 +1331,6 @@ extern int net_msg_warn;
#define LIMIT_NETDEBUG(fmt, args...) \
do { if (net_msg_warn && net_ratelimit()) printk(fmt,##args); } while(0)

/*
* Macros for sleeping on a socket. Use them like this:
*
* SOCK_SLEEP_PRE(sk)
* if (condition)
* schedule();
* SOCK_SLEEP_POST(sk)
*
* N.B. These are now obsolete and were, afaik, only ever used in DECnet
* and when the last use of them in DECnet has gone, I'm intending to
* remove them.
*/

#define SOCK_SLEEP_PRE(sk) { struct task_struct *tsk = current; \
DECLARE_WAITQUEUE(wait, tsk); \
tsk->state = TASK_INTERRUPTIBLE; \
add_wait_queue((sk)->sk_sleep, &wait); \
release_sock(sk);

#define SOCK_SLEEP_POST(sk) tsk->state = TASK_RUNNING; \
remove_wait_queue((sk)->sk_sleep, &wait); \
lock_sock(sk); \
}

extern __u32 sysctl_wmem_max;
extern __u32 sysctl_rmem_max;

Expand Down

0 comments on commit 2c06327

Please sign in to comment.