svn commit: r266806 - head/sys/netgraph
Julian Elischer
julian at freebsd.org
Wed May 28 14:12:48 UTC 2014
On 5/28/14, 9:15 PM, Gleb Smirnoff wrote:
> Author: glebius
> Date: Wed May 28 13:15:14 2014
> New Revision: 266806
> URL: http://svnweb.freebsd.org/changeset/base/266806
>
> Log:
> Use M_WAITOK for the NGM_PIPE_SET_CFG control message. We expect it to
> arrive from userland only.
>
> Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com>
what's to stop another node from generating it and sending it on?
generally a message may come from anywhere.
Just becasue YOU don't have module that
sends messages to ng_pipe, doesn't mean there never will be..
also there are cases when the locking may force a message to be
delivered asynchronously.
>
> Modified:
> head/sys/netgraph/ng_pipe.c
>
> Modified: head/sys/netgraph/ng_pipe.c
> ==============================================================================
> --- head/sys/netgraph/ng_pipe.c Wed May 28 13:06:53 2014 (r266805)
> +++ head/sys/netgraph/ng_pipe.c Wed May 28 13:15:14 2014 (r266806)
> @@ -471,7 +471,7 @@ parse_cfg(struct ng_pipe_hookcfg *curren
> if (hinfo->ber_p == NULL)
> hinfo->ber_p =
> malloc((MAX_FSIZE + MAX_OHSIZE) * sizeof(uint64_t),
> - M_NG_PIPE, M_NOWAIT);
> + M_NG_PIPE, M_WAITOK);
> current->ber = new->ber;
>
> /*
>
>
More information about the svn-src-head
mailing list