From: Shannon Nelson <hidden> Date: 2007-07-25 00:36:27
(repost - original eaten by vger?)
Al Viro pointed out that dma_memcpy_to_kernel_iovec() really was
unreachable and thus unused. The code originally was there to support
in-kernel dma needs, but since it remains unused, we'll pull it out.
Signed-off-by: Shannon Nelson <redacted>
---
drivers/dma/iovlock.c | 27 ---------------------------
1 files changed, 0 insertions(+), 27 deletions(-)
Al Viro pointed out that dma_memcpy_to_kernel_iovec() really was
unreachable and thus unused. The code originally was there to support
in-kernel dma needs, but since it remains unused, we'll pull it out.
Signed-off-by: Shannon Nelson <redacted>
This looks OK, unless some objections come up I'll merge this in
during my next round of net fixes to Linus.
(repost - original eaten by vger?)
Al Viro pointed out that dma_memcpy_to_kernel_iovec() really was
unreachable and thus unused. The code originally was there to support
in-kernel dma needs, but since it remains unused, we'll pull it out.
Signed-off-by: Shannon Nelson <redacted>
(repost - original eaten by vger?)
Al Viro pointed out that dma_memcpy_to_kernel_iovec() really was
unreachable and thus unused. The code originally was there to support
in-kernel dma needs, but since it remains unused, we'll pull it out.
Signed-off-by: Shannon Nelson <redacted>
Applied, thanks Shannon.
NET_DMA on kernel buffer is pretty useful in ndb, iSCSI target and
initiators which uses kernel buffer to receive data. Are there any
other issues with dma-memcpy on kernel buffers, if not then following
patch makes dma_memcpy_to_kernel_iovec() reachable from tcp_recvmsg.
I tested this patch and it work fine with unh iSCSI target.
comments?
--pravin.
Index: linux-2.6.23-rc1/net/ipv4/tcp.c
===================================================================
@@ -1115,7 +1115,7 @@inttarget;/* Read at least this many bytes */longtimeo;structtask_struct*user_recv=NULL;-intcopied_early=0;+intcopied_early=0,kernel_dma=0;structsk_buff*skb;lock_sock(sk);
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Christoph Hellwig <hch@infradead.org> Date: 2007-07-30 18:14:58
On Mon, Jul 30, 2007 at 08:09:53PM +0530, pravin wrote:
comments?
please avoid using plain sendmsg/recvmsg from kernelspace. Adding these
segment checks is more than a bad hack and not something that should
clutter up fasthpathes. Add to that problems with kthreads vs blocking
recvmsg and you have a bigger mess than you can handle.
(repost - original eaten by vger?)
Al Viro pointed out that dma_memcpy_to_kernel_iovec() really was
unreachable and thus unused. The code originally was there to
support in-kernel dma needs, but since it remains unused,
we'll pull it out.
quoted
quoted
Signed-off-by: Shannon Nelson <redacted>
Applied, thanks Shannon.
NET_DMA on kernel buffer is pretty useful in ndb, iSCSI
target and initiators which uses kernel buffer to receive
data. Are there any other issues with dma-memcpy on kernel
buffers, if not then following patch makes
dma_memcpy_to_kernel_iovec() reachable from tcp_recvmsg.
I tested this patch and it work fine with unh iSCSI target.
comments?
--pravin.
Pravin,
Currently, NET_DMA only has one provider in the kernel, namely
TCP. As the driver stands now, I'd like to keep this function out since
it really wasn't being used before. Shannon has posted patches that
will hopefully make it into 2.6.24 that allow multiple clients to
request DMA channels, so things like iSCSI, ndb, UDP, and NFS can ask
for channels without depending on TCP. Once we get to that point, if we
see the need for the function, we can add it back.
We have tried getting iSCSI accelerated through NET_DMA already,
and didn't see the performance boost that made it worthwhile to do.
Once the multiple client channel patches are in, we can revisit that,
since it can be done "right."
Cheers,
-PJ Waskiewicz