summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNeil Brown <neilb@cse.unsw.edu.au>2002-08-12 17:48:41 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-08-12 17:48:41 -0700
commit3060e0118a43db82c86a06d76d8b8827ee5f7946 (patch)
tree5c91bcae72a6e7b540bc07dbef0275192ca6f839 /include/linux
parentd1269ac7edfd38070871cbe50d12da20b14861f6 (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.h1
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 */