diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2002-08-12 17:48:41 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-08-12 17:48:41 -0700 |
| commit | 3060e0118a43db82c86a06d76d8b8827ee5f7946 (patch) | |
| tree | 5c91bcae72a6e7b540bc07dbef0275192ca6f839 /include/linux | |
| parent | d1269ac7edfd38070871cbe50d12da20b14861f6 (diff) | |
[PATCH] Rearrange setting of snd/rcv buf size to avoid locking issue
Currently svc_sock_setbuf can be called under a spinlock,
but it can try to lock a socket, which can block....
Now when we decide that changing the size might be good we
set a flag (SK_CHNGBUF) and then later (when the next
packet arrives) we change the sizes appropriately.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sunrpc/svcsock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h index eb118134b0c0..34cbc22c0732 100644 --- a/include/linux/sunrpc/svcsock.h +++ b/include/linux/sunrpc/svcsock.h @@ -30,6 +30,7 @@ struct svc_sock { #define SK_TEMP 4 /* temp (TCP) socket */ #define SK_QUED 5 /* on serv->sk_sockets */ #define SK_DEAD 6 /* socket closed */ +#define SK_CHNGBUF 7 /* need to change snd/rcv buffer sizes */ int sk_reserved; /* space on outq that is reserved */ |
