diff options
Diffstat (limited to 'sys/kern/uipc_syscalls.c')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 53de5bc..463ae89 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1920,9 +1920,7 @@ kern_sendfile(struct thread *td, struct sendfile_args *uap, } /* Protect against multiple writers to the socket. */ - SOCKBUF_LOCK(&so->so_snd); (void) sblock(&so->so_snd, M_WAITOK); - SOCKBUF_UNLOCK(&so->so_snd); /* * Loop through the pages of the file, starting with the requested @@ -2196,9 +2194,7 @@ retry_space: } done: - SOCKBUF_LOCK(&so->so_snd); sbunlock(&so->so_snd); - SOCKBUF_UNLOCK(&so->so_snd); out: /* * If there was no error we have to clear td->td_retval[0] |