git: kernel - Adjust ssb_space_prealloc() use cases
Sepherosa Ziehau
sepherosa at gmail.com
Sun Jul 20 05:41:05 PDT 2014
Great!
Thanks,
sephe
On Sat, Jul 19, 2014 at 12:37 AM, Matthew Dillon
<dillon at crater.dragonflybsd.org> wrote:
>
> commit a5e9382686e31add8639d621f888ae44457bdda2
> Author: Matthew Dillon <dillon at apollo.backplane.com>
> Date: Fri Jul 18 09:32:46 2014 -0700
>
> kernel - Adjust ssb_space_prealloc() use cases
>
> * Add two flags to the signalsockbuf ssb_flags field.
>
> SSB_PREALLOC - Indicates that data preallocation tracking is being used
> SSB_STOPSUPP - Indicates that SSB_STOP flow control is being used
>
> * unix domain sockets set SSB_STOPSUPP, tcp and sctp sockets
> set SSB_PREALLOC.
>
> * sendfile() requires that either SSB_PREALLOC or SSB_STOPSUPP be specified.
>
> * Code now conditionalizes the use of ssb_space() vs ssb_space_prealloc()
> based on the presence of the SSB_PREALLOC flag.
>
> Reported-by: sephe
>
> Summary of changes:
> sys/kern/uipc_socket2.c | 9 +++++++--
> sys/kern/uipc_syscalls.c | 38 ++++++++++++++++++++++++++++++--------
> sys/kern/uipc_usrreq.c | 12 +++++++++++-
> sys/netinet/sctp_usrreq.c | 3 +++
> sys/netinet/tcp_usrreq.c | 4 ++--
> sys/sys/socketvar.h | 2 ++
> 6 files changed, 55 insertions(+), 13 deletions(-)
>
> http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a5e9382686e31add8639d621f888ae44457bdda2
>
>
> --
> DragonFly BSD source repository
--
Tomorrow Will Never Die
More information about the Commits
mailing list