diff options
author | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2022-12-11 21:19:09 +0000 |
---|---|---|
committer | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2022-12-11 21:19:09 +0000 |
commit | 61e6bff432802649033fc9deb226e83255763605 (patch) | |
tree | 40b3de142b46eef76a916467a6531cf7454495f6 /sys/netinet/tcp_usrreq.c | |
parent | b99b167030a0a2fbeab051ba2208138a878c5107 (diff) |
This time, socket's buffer lock requires solock() to be held. As a part of
socket buffers standalone locking work, move socket state bits which
represent its buffers state to per buffer state. Introduce `sb_state' and
turn SS_CANTSENDMORE to SBS_CANTSENDMORE. This bit will be processed on
`so_snd' buffer only.
Move SS_CANTRCVMORE and SS_RCVATMARK bits with separate diff to make
review easier and exclude possible so_rcv/so_snd mistypes.
Also, don't adjust the remaining SS_* bits right now.
ok millert@
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 2595877d5dd..51d5a148ee1 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.212 2022/11/09 15:01:24 claudio Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.213 2022/12/11 21:19:08 mvs Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -773,7 +773,7 @@ tcp_shutdown(struct socket *so) ostate = tp->t_state; } - if (so->so_state & SS_CANTSENDMORE) + if (so->so_snd.sb_state & SBS_CANTSENDMORE) goto out; socantsendmore(so); |