On Tue, May 06, 2025 at 10:29:01AM -0700, Cy Schubert wrote:
C> In the case of /usr/obj I did,
C>
C> rsync -aHv --delete --progress /usr/obj/. other_server:/usr/obj/.
I think I was able to reproduce, but not sure.
Can you please try the attached patch at your setup?
--
Gleb Smirnoff
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index 1722a43a800e..0836652b6a24 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -1681,11 +1681,12 @@ uipc_sopoll_stream_or_seqpacket(struct socket *so, int events,
(POLLOUT | POLLWRNORM);
if (sb->sb_state & SBS_CANTRCVMORE)
revents |= POLLHUP;
- if (!(revents & (POLLOUT | POLLWRNORM)))
+ if (!(revents & (POLLOUT | POLLWRNORM))) {
so2->so_rcv.uxst_flags |= UXST_PEER_SEL;
+ selrecord(td, &so->so_wrsel);
+ }
SOCK_RECVBUF_UNLOCK(so2);
- }
- if (!(revents & (POLLOUT | POLLWRNORM)))
+ } else
selrecord(td, &so->so_wrsel);
}
}