Add a SOCKBUF_LOCK() to a rarely executed path in do_sendfile().

This commit is contained in:
Alan Cox 2004-10-02 05:37:47 +00:00
parent a4a358733d
commit 86dac448f2

View File

@ -1804,6 +1804,7 @@ retry_lookup:
if (m_header != NULL) {
m = m_header;
m_header = NULL;
SOCKBUF_LOCK(&so->so_snd);
goto retry_space;
} else
break;