Re: [PATCH] tcp: perform DMA to userspace only if there is a task waiting for it

2012-07-27 Thread David Miller
From: Jiri Kosina Date: Fri, 27 Jul 2012 16:05:06 +0200 (CEST) > #ifdef CONFIG_NET_DMA > - if (tcp_dma_try_early_copy(sk, skb, > tcp_header_len)) { > + if (tp->ucopy.task == current && > +

[PATCH] tcp: perform DMA to userspace only if there is a task waiting for it

2012-07-27 Thread Jiri Kosina
Back in 2006, commit 1a2449a87b ("[I/OAT]: TCP recv offload to I/OAT") added support for receive offloading to IOAT dma engine if available. The code in tcp_rcv_established() tries to perform early DMA copy if applicable. It however does so without checking whether the userspace task is

[PATCH] tcp: perform DMA to userspace only if there is a task waiting for it

2012-07-27 Thread Jiri Kosina
Back in 2006, commit 1a2449a87b ([I/OAT]: TCP recv offload to I/OAT) added support for receive offloading to IOAT dma engine if available. The code in tcp_rcv_established() tries to perform early DMA copy if applicable. It however does so without checking whether the userspace task is actually

Re: [PATCH] tcp: perform DMA to userspace only if there is a task waiting for it

2012-07-27 Thread David Miller
From: Jiri Kosina jkos...@suse.cz Date: Fri, 27 Jul 2012 16:05:06 +0200 (CEST) #ifdef CONFIG_NET_DMA - if (tcp_dma_try_early_copy(sk, skb, tcp_header_len)) { + if (tp-ucopy.task == current +