mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* tcp_do_sendmsg() allocation still broken ?
@ 2000-10-28 21:12 Marcelo Tosatti
  2000-10-29  1:03 ` Andi Kleen
  2000-10-29  1:34 ` David S. Miller
  0 siblings, 2 replies; 10+ messages in thread
From: Marcelo Tosatti @ 2000-10-28 21:12 UTC (permalink / raw)
  To: Dave S. Miller; +Cc: linux-kernel


David,

tcp_do_sendmsg() still allocates using GFP_KERNEL when it can't, it seems: 

int tcp_do_sendmsg(struct sock *sk, struct msghdr *msg)
{
...
                     TCP_SKB_CB(skb)->seq = tp->write_seq;
                        TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(skb)->seq +
copy;

                        /* This advances tp->write_seq for us. */
                        tcp_send_skb(sk, skb, queue_it);
			^^^^^^^^^^^^
 
                }
        }
        sk->err = 0;
...
}


Now what we can find at tcp_send_skb? :)


void tcp_send_skb(struct sock *sk, struct sk_buff *skb, int force_queue,
unsigned cur_mss) {

...

    if (!force_queue && tp->send_head == NULL && tcp_snd_test(tp, skb,
cur_mss, 1)) {
                /* Send it out now. */
                TCP_SKB_CB(skb)->when = tcp_time_stamp;
                if (tcp_transmit_skb(sk, skb_clone(skb, GFP_KERNEL)) == 0) {
							^^^^^^^^^^^^
                        tp->snd_nxt = TCP_SKB_CB(skb)->end_seq;

...




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2000-10-29 11:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-28 21:12 tcp_do_sendmsg() allocation still broken ? Marcelo Tosatti
2000-10-29  1:03 ` Andi Kleen
2000-10-28 23:13   ` Marcelo Tosatti
2000-10-29  1:16     ` Andi Kleen
2000-10-28 23:25       ` Marcelo Tosatti
2000-10-29 11:36       ` Alan Cox
2000-10-29  1:34     ` David S. Miller
2000-10-29  1:46   ` Rik van Riel
2000-10-29  7:15     ` Andi Kleen
2000-10-29  1:34 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®