Re: [PATCH v2 0/3 net-next] Finish conversion of skb_frag_t to bio_vec

2019-07-30 Thread Jens Axboe
On 7/30/19 8:40 AM, Jonathan Lemon wrote: > The recent conversion of skb_frag_t to bio_vec did not include > skb_frag's page_offset. Add accessor functions for this field, > utilize them, and remove the union, restoring the original structure. You can add: Reviewed-by: Jens

Re: [PATCH v2 0/3 net-next] Finish conversion of skb_frag_t to bio_vec

2019-07-30 Thread Jens Axboe
On 7/30/19 3:22 PM, David Miller wrote: > From: Jens Axboe > Date: Tue, 30 Jul 2019 20:49:09 + > >> Pretty appalled to see this abomination: >> >> net: Convert skb_frag_t to bio_vec >> >> There are a lot of users of frag->page_offset, so use a unio

Re: [PATCH 0/3] PROTO_CMSG_DATA_ONLY for Datagram (UDP)

2020-12-12 Thread Jens Axboe
n general. I'd also CC Jann Horn on the series, he's the one that found an issue there in the past and also acked the previous change on doing PROTO_CMSG_DATA_ONLY. -- Jens Axboe

Re: [PATCH 0/3] PROTO_CMSG_DATA_ONLY for Datagram (UDP)

2020-12-12 Thread Jens Axboe
On 12/12/20 10:25 AM, Victor Stewart wrote: > On Sat, Dec 12, 2020 at 5:07 PM Jens Axboe wrote: >> >> On 12/12/20 8:31 AM, Victor Stewart wrote: >>> RE our conversation on the "[RFC 0/1] whitelisting UDP GSO and GRO >>> cmsgs" thread.

Re: [PATCH 0/3] PROTO_CMSG_DATA_ONLY for Datagram (UDP)

2020-12-12 Thread Jens Axboe
On 12/12/20 10:58 AM, Victor Stewart wrote: > On Sat, Dec 12, 2020 at 5:40 PM Jens Axboe wrote: >> >> On 12/12/20 10:25 AM, Victor Stewart wrote: >>> On Sat, Dec 12, 2020 at 5:07 PM Jens Axboe wrote: >>>> >>>> On 12/12/20 8:31 AM, Victor Stewart w

Re: [PATCH 0/3] PROTO_CMSG_DATA_ONLY for Datagram (UDP)

2020-12-12 Thread Jens Axboe
On 12/12/20 2:42 PM, Victor Stewart wrote: > On Sat, Dec 12, 2020 at 6:02 PM Jens Axboe wrote: >> >> On 12/12/20 10:58 AM, Victor Stewart wrote: >>> On Sat, Dec 12, 2020 at 5:40 PM Jens Axboe wrote: >>>> >>>> On 12/12/20 10:25 AM, Victor Stewart w

Re: [PATCH net-next v5] udp:allow UDP cmsghdrs through io_uring

2020-12-17 Thread Jens Axboe
~82%. > > this patch closes that loophole. LGTM Acked-by: Jens Axboe -- Jens Axboe

Re: [PATCH net-next v4] udp:allow UDP cmsghdrs through io_uring

2020-12-17 Thread Jens Axboe
On 12/16/20 4:29 PM, Victor Stewart wrote: > what's to be done about this kernel test robot output, if anything? Nothing I think, doesn't look related to your change at all. -- Jens Axboe

Re: [PATCH net-next v5] udp:allow UDP cmsghdrs through io_uring

2020-12-17 Thread Jens Axboe
table pushing this to 5.12. -- Jens Axboe

[PATCH] tun: honor IOCB_NOWAIT flag

2020-11-20 Thread Jens Axboe
, tfile, to, noblock, NULL); ret = min_t(ssize_t, ret, len); if (ret > 0) iocb->ki_pos = ret; -- Jens Axboe

[PATCH] tun: honor IOCB_NOWAIT flag

2020-11-20 Thread Jens Axboe
, tfile, to, noblock, NULL); ret = min_t(ssize_t, ret, len); if (ret > 0) iocb->ki_pos = ret; -- Jens Axboe

Re: inconsistent lock state in io_file_data_ref_zero

2020-11-23 Thread Jens Axboe
p;data->lock); + spin_lock_bh(&data->lock); list_add_tail(&ref_node->node, &data->ref_list); data->node = ref_node; - spin_unlock(&data->lock); + spin_unlock_bh(&data->lock); percpu_ref_get(&ctx->file_data->refs); } else destroy_fixed_file_ref_node(ref_node); -- Jens Axboe

Re: [REGRESSION] mm: process_vm_readv testcase no longer works after compat_prcoess_vm_readv removed

2020-10-26 Thread Jens Axboe
ack_r, false); + iov_r = iovec_from_user(rvec, riovcnt, UIO_FASTIOV, iovstack_r, + in_compat_syscall()); if (IS_ERR(iov_r)) { rc = PTR_ERR(iov_r); goto free_iov_l; -- Jens Axboe

Re: [REGRESSION] mm: process_vm_readv testcase no longer works after compat_prcoess_vm_readv removed

2020-10-26 Thread Jens Axboe
On 10/26/20 6:05 PM, Al Viro wrote: > On Mon, Oct 26, 2020 at 05:56:11PM -0600, Jens Axboe wrote: >> On 10/26/20 4:55 PM, Kyle Huey wrote: >>> A test program from the rr[0] test suite, vm_readv_writev[1], no >>> longer works on 5.10-rc1 when compiled as a 32 bit binary a

Re: (subset) [PATCH io_uring-next/net-next v2 0/4] implement io_uring notification (ubuf_info) stacking

2024-04-22 Thread Jens Axboe
ication stacking commit: 6fe4220912d19152a26ce19713ab232f4263018d Best regards, -- Jens Axboe

Re: [PATCH] virtio_net: Fix memory leak in virtnet_rx_mod_work

2024-05-09 Thread Jens Axboe
On 5/9/24 12:36 PM, Daniel Jurgens wrote: > The pointer delcaration was missing the __free(kfree). Works for me: Tested-by: Jens Axboe -- Jens Axboe

Re: [RFC v3 01/11] eventfd: track eventfd_signal() recursion depth separately in different cases

2021-01-27 Thread Jens Axboe
uld be sufficient? >>> >> Actually I mean the deadlock described in commit f0b493e ("io_uring: >> prevent potential eventfd recursion on poll"). It can break this bug >> fix if we just increase EVENTFD_WAKEUP_DEPTH. > > > Ok, so can wait do something similar in that commit? (using async stuffs > like wq). io_uring should be fine in current kernels, but aio would still be affected by this. But just in terms of recursion, bumping it one more should probably still be fine. -- Jens Axboe

[PATCH] iwlwifi: ensure that DMI scan table is properly terminated

2021-03-02 Thread Jens Axboe
=== Fixes: a2ac0f48a07c ("iwlwifi: mvm: implement approved list for the PPAG feature") Signed-off-by: Jens Axboe --- diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c index 15e2773ce7e7..71e5306bd695 100644 --- a/drivers/net/wi

[PATCH] iwlwifi: ensure that DMI scan table is properly terminated

2021-03-02 Thread Jens Axboe
=== Fixes: a2ac0f48a07c ("iwlwifi: mvm: implement approved list for the PPAG feature") Signed-off-by: Jens Axboe --- diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c index 15e2773ce7e7..71e5306bd695 100644 --- a/drivers/net/wi

Re: [PATCH] iwlwifi: ensure that DMI scan table is properly terminated

2021-03-02 Thread Jens Axboe
On 3/2/21 8:49 PM, Jens Axboe wrote: > On 3/2/21 11:34 AM, Coelho, Luciano wrote: >> On Tue, 2021-03-02 at 11:20 -0700, Jens Axboe wrote: >>> My laptop crashes at boot, and I ran the same kernel with KASAN enabled. >>> Turns out the DMI addition for iwlwifi is broken (a

Re: [PATCH] iwlwifi: ensure that DMI scan table is properly terminated

2021-03-02 Thread Jens Axboe
On 3/2/21 11:34 AM, Coelho, Luciano wrote: > On Tue, 2021-03-02 at 11:20 -0700, Jens Axboe wrote: >> My laptop crashes at boot, and I ran the same kernel with KASAN enabled. >> Turns out the DMI addition for iwlwifi is broken (and untested?), since >> it doesn't properl

Re: [PATCH v2 1/1] io_uring: call req_set_fail_links() on short send[msg]()/recv[msg]() with MSG_WAITALL

2021-03-20 Thread Jens Axboe
all just ignores > MSG_WAITALL, as MSG_ZEROCOPY is also ignored without explicitly set > SO_ZEROCOPY. > > We also expect the caller to know about the implicit truncation to > MAX_RW_COUNT, which we don't detect. Thanks, I do think this is much better and I feel comfortable getting htis applied for 5.12 (and stable). -- Jens Axboe

Re: [PATCH v2 1/1] io_uring: call req_set_fail_links() on short send[msg]()/recv[msg]() with MSG_WAITALL

2021-03-21 Thread Jens Axboe
On 3/21/21 4:20 AM, Stefan Metzmacher wrote: > > Am 20.03.21 um 23:57 schrieb Jens Axboe: >> On 3/20/21 1:33 PM, Stefan Metzmacher wrote: >>> Without that it's not safe to use them in a linked combination with >>> others. >>> >>>

Re: [PATCH] block: convert tasklets to use new tasklet_setup() API

2020-08-17 Thread Jens Axboe
e up with the idea to add a macro 'from_tasklet' that is just container_of? container_of in the code would be _much_ more readable, and not leave anyone guessing wtf from_tasklet is doing. I'd fix that up now before everything else goes in... -- Jens Axboe

Re: [PATCH] block: convert tasklets to use new tasklet_setup() API

2020-08-17 Thread Jens Axboe
On 8/17/20 12:29 PM, Kees Cook wrote: > On Mon, Aug 17, 2020 at 06:56:47AM -0700, Jens Axboe wrote: >> On 8/17/20 2:15 AM, Allen Pais wrote: >>> From: Allen Pais >>> >>> In preparation for unconditionally passing the >>> struct tasklet_struct pointer

Re: [PATCH] block: convert tasklets to use new tasklet_setup() API

2020-08-17 Thread Jens Axboe
On 8/17/20 12:48 PM, Kees Cook wrote: > On Mon, Aug 17, 2020 at 12:44:34PM -0700, Jens Axboe wrote: >> On 8/17/20 12:29 PM, Kees Cook wrote: >>> On Mon, Aug 17, 2020 at 06:56:47AM -0700, Jens Axboe wrote: >>>> On 8/17/20 2:15 AM, Allen Pais wrote: >>>>>

Re: [PATCH] block: convert tasklets to use new tasklet_setup() API

2020-08-19 Thread Jens Axboe
On 8/18/20 1:00 PM, James Bottomley wrote: > On Mon, 2020-08-17 at 13:02 -0700, Jens Axboe wrote: >> On 8/17/20 12:48 PM, Kees Cook wrote: >>> On Mon, Aug 17, 2020 at 12:44:34PM -0700, Jens Axboe wrote: >>>> On 8/17/20 12:29 PM, Kees Cook wrote: >>>>> O

Re: [PATCH] block: convert tasklets to use new tasklet_setup() API

2020-08-19 Thread Jens Axboe
On 8/19/20 6:11 AM, Greg KH wrote: > On Wed, Aug 19, 2020 at 07:00:53AM -0600, Jens Axboe wrote: >> On 8/18/20 1:00 PM, James Bottomley wrote: >>> On Mon, 2020-08-17 at 13:02 -0700, Jens Axboe wrote: >>>> On 8/17/20 12:48 PM, Kees Cook wrote: >>>>> O

Re: [PATCH] block: convert tasklets to use new tasklet_setup() API

2020-08-19 Thread Jens Axboe
let() > > - out_cast() or outer_cast() > - from_member(). > - container_from() or from_container() > > from_container() sounds fine, would trimming it a bit work? like from_cont(). I like container_from() the most, since it's the closest to contain_of() which is a well known idiom for years. The lines will already be shorter without the need to specify the struct, so don't like the idea of squeezing container into cont for any of them. For most people, cont is usually short for continue, not container. -- Jens Axboe

Re: [PATCH net-next 1/2] io_uring: allow tcp ancillary data for __sys_recvmsg_sock()

2020-08-21 Thread Jens Axboe
eived -EINVALID from > this specific code path. After this patch, we could read tcp tx > zero-copy completion notifications from the MSG_ERRQUEUE. > > Signed-off-by: Soheil Hassas Yeganeh > Signed-off-by: Arjun Roy > Acked-by: Eric Dumazet > Reviewed-by: Jann Horn > Signed-off-by: Luke Hsiao Reviewed-by: Jens Axboe -- Jens Axboe

Re: [PATCH net-next 2/2] io_uring: ignore POLLIN for recvmsg on MSG_ERRQUEUE

2020-08-21 Thread Jens Axboe
or 9 of them don't really matter... This is something that should be cleaned up separately at some point. > And obviously the brackets around POLLIN are not necessary. Agree, would be cleaner without! Luke, with that: Reviewed-by: Jens Axboe -- Jens Axboe

Re: [PATCH net-next 2/2] io_uring: ignore POLLIN for recvmsg on MSG_ERRQUEUE

2020-08-21 Thread Jens Axboe
On 8/21/20 6:08 PM, Luke Hsiao wrote: > Hi Jakub and Jens, > > Thank you for both of your reviews. Some responses inline below. > > On Fri, Aug 21, 2020 at 2:11 PM Jens Axboe wrote: >> >> On 8/21/20 2:41 PM, Jakub Kicinski wrote: >>> On Thu, 20 Aug

Re: [PATCH net-next v2 2/2] io_uring: ignore POLLIN for recvmsg on MSG_ERRQUEUE

2020-08-21 Thread Jens Axboe
flags & REQ_F_NOWAIT)) { > - if (!io_arm_poll_handler(req)) { > + if (!io_arm_poll_handler(req, sqe)) { Also means you can drop this part. -- Jens Axboe

Re: [PATCH net-next v2 2/2] io_uring: ignore POLLIN for recvmsg on MSG_ERRQUEUE

2020-08-21 Thread Jens Axboe
On 8/21/20 8:13 PM, Luke Hsiao wrote: > Hi Jens, > > On Fri, Aug 21, 2020 at 7:09 PM Jens Axboe wrote: >> >> On 8/21/20 8:04 PM, Luke Hsiao wrote: >>> >> Sorry, one more minor thing to fix up: >> >>> @@ -4932,6 +4934,11 @@ s

Re: [PATCH net-next v3 2/2] io_uring: ignore POLLIN for recvmsg on MSG_ERRQUEUE

2020-08-22 Thread Jens Axboe
ses. > > This patch was tested by using a simple sending program to call recvmsg > using io_uring with MSG_ERRQUEUE set and verifying with printks that the > POLLIN is correctly unset when the msg flags are MSG_ERRQUEUE. Perfect, and ends up being much simpler too and straight forward. -- Jens Axboe

Re: [PATCH 2/5] ide: kill ide_toggle_bounce

2018-04-24 Thread Jens Axboe
the issue was that the PIO code could not handle highmem. That's not the case anymore, so this should be fine. Reviewed-by: Jens Axboe -- Jens Axboe

Re: [PATCH 2/5] ide: kill ide_toggle_bounce

2018-04-26 Thread Jens Axboe
On 4/26/18 1:20 AM, Christoph Hellwig wrote: > On Tue, Apr 24, 2018 at 08:02:56PM -0600, Jens Axboe wrote: >> On 4/24/18 12:16 PM, Christoph Hellwig wrote: >>> ide_toggle_bounce did select various strange block bounce limits, including >>> not bouncing at all as soon as

Re: [PATCH for-next] net: provide __sys_shutdown_sock() that takes a socket

2020-09-07 Thread Jens Axboe
On 9/6/20 11:48 PM, Christoph Hellwig wrote: > On Sat, Sep 05, 2020 at 04:05:48PM -0600, Jens Axboe wrote: >> There's a trivial io_uring patch that depends on this one. If this one >> is acceptable to you, I'd like to queue it up in the io_uring branch for >> 5.10

Re: [PATCH for-next] net: provide __sys_shutdown_sock() that takes a socket

2020-09-07 Thread Jens Axboe
On 9/7/20 11:00 AM, Christoph Hellwig wrote: > On Mon, Sep 07, 2020 at 09:58:13AM -0700, Jakub Kicinski wrote: >> On Mon, 7 Sep 2020 10:45:00 -0600 Jens Axboe wrote: >>> On 9/6/20 11:48 PM, Christoph Hellwig wrote: >>>> On Sat, Sep 05, 2020 at 04:05:48PM -0600, Jens

Re: [PATCH] block: remove redundant empty check of mq_list

2020-09-09 Thread Jens Axboe
tead of doing the function call and then aborting if it's empty. So I'd suggest just leaving it alone. Right now this is the only caller, but it's nicer to assume we can be called in any state vs not having the check. -- Jens Axboe

[PATCH for-next] net: provide __sys_shutdown_sock() that takes a socket

2020-09-05 Thread Jens Axboe
No functional changes in this patch, needed to provide io_uring support for shutdown(2). Cc: netdev@vger.kernel.org Cc: David S. Miller Signed-off-by: Jens Axboe --- There's a trivial io_uring patch that depends on this one. If this one is acceptable to you, I'd like to queue it

Re: [PATCH for-next] net: provide __sys_shutdown_sock() that takes a socket

2020-09-05 Thread Jens Axboe
On 9/5/20 4:39 PM, Jakub Kicinski wrote: > On Sat, 5 Sep 2020 16:05:48 -0600 Jens Axboe wrote: >> No functional changes in this patch, needed to provide io_uring support >> for shutdown(2). >> >> Cc: netdev@vger.kernel.org >> Cc: David S. Mil

Re: [Intel-wired-lan] [PATCH V2] mm: Replace all open encodings for NUMA_NO_NODE

2018-11-26 Thread Jens Axboe
gt; Signed-off-by: Anshuman Khandual > > For the 'ixgbe' driver changes. > > Acked-by: Jeff Kirsher Lost the original, but for mtip32xx: Acked-by: Jens Axboe -- Jens Axboe

Re: [PATCH RFC 00/15] Zero ****s, hugload of hugs <3

2018-11-30 Thread Jens Axboe
. How would anyone get offended by reading > technical comments? This is all beyond me... Agree, this is insanity. -- Jens Axboe

Re: [PATCH RFC 00/15] Zero ****s, hugload of hugs <3

2018-11-30 Thread Jens Axboe
. And with that, can we please put an end to this thread (and patchset)? -- Jens Axboe

[PATCH 13/19] net: split out functions related to registering inflight socket files

2019-02-08 Thread Jens Axboe
etdev@vger.kernel.org Cc: David S. Miller Signed-off-by: Jens Axboe --- include/net/af_unix.h | 1 + net/unix/Kconfig | 5 ++ net/unix/Makefile | 2 + net/unix/af_unix.c| 63 +- net/unix/garbage.c| 71 +--- net/unix/scm.c

Re: [PATCH 13/19] net: split out functions related to registering inflight socket files

2019-02-08 Thread Jens Axboe
On 2/8/19 12:49 PM, David Miller wrote: > From: Jens Axboe > Date: Fri, 8 Feb 2019 10:34:17 -0700 > >> We need this functionality for the io_uring file registration, but >> we cannot rely on it since CONFIG_UNIX can be modular. Move the helpers >> to a separate fil

Re: [PATCH 1/2] Convert target drivers to use sbitmap

2018-05-15 Thread Jens Axboe
g = iscsit_wait_for_tag(se_sess, state, &cpu); > if (tag < 0) > return NULL; Might make sense to just roll the whole thing into iscsi_get_tag(), that would be cleaner. sbitmap should provide a helper for that, but we can do that cleanup later. That would encapsulate things like the per-cpu caching hint too, for instance. Rest looks fine to me. -- Jens Axboe

Re: [PATCH 1/2] Convert target drivers to use sbitmap

2018-05-15 Thread Jens Axboe
On 5/15/18 10:11 AM, Jens Axboe wrote: > On 5/15/18 10:00 AM, Matthew Wilcox wrote: >> From: Matthew Wilcox >> >> The sbitmap and the percpu_ida perform essentially the same task, >> allocating tags for commands. Since the sbitmap is more used than >> the percpu_

Re: mlx5 broken affinity

2017-11-08 Thread Jens Axboe
rivate and frequently changed, setting it at bootup to a known good configuration helped eliminate problems when upgrading kernels. I also remember some cases of removing CPU0 from the mask. But that particular case is completely orthogonal to whether or not we should allow the user to reconfigure.

Re: mlx5 broken affinity

2017-11-09 Thread Jens Axboe
On 11/09/2017 03:09 AM, Christoph Hellwig wrote: > On Wed, Nov 08, 2017 at 09:13:59AM -0700, Jens Axboe wrote: >> There are numerous valid reasons to be able to set the affinity, for >> both nics and block drivers. It's great that the kernel has a predefined >> layout tha

Re: mlx5 broken affinity

2017-11-09 Thread Jens Axboe
nswer is "NO, user-space can't handle all the stuff the kernel can" > then we should document it. This is really device independent. Completely agree, and honestly I'm pretty baffled we're even having to argue this point. -- Jens Axboe

Re: mlx5 broken affinity

2017-11-09 Thread Jens Axboe
> limitations after the changes hit the tree. This could have been figured > out before even a single patch was posted. > > Now you try to blame the people who implemented the managed affinity stuff > for the wreckage, which was created by people who changed drivers to use > it. Nice try. If that's the attitude at your end, then I do suggest we just revert the driver changes. Clearly this isn't going to be productive going forward. The better solution was to make the managed setup more flexible, but it doesn't sound like that is going to be viable at all. -- Jens Axboe

Re: mlx5 broken affinity

2017-11-09 Thread Jens Axboe
st trying to understand > how to move forward with making users happy and still enjoy subsystem > services instead of doing lots of similar things inside mlx5 driver. Exactly. The key here is how we make it work for both cases. But there has to be a willingness to make the infrastructure work for that. -- Jens Axboe

Re: mlx5 broken affinity

2017-11-09 Thread Jens Axboe
On 11/09/2017 10:03 AM, Thomas Gleixner wrote: > On Thu, 9 Nov 2017, Jens Axboe wrote: >> On 11/09/2017 07:19 AM, Thomas Gleixner wrote: >> If that's the attitude at your end, then I do suggest we just revert the >> driver changes. Clearly this isn't going to be prod

Re: mlx5 broken affinity

2017-11-09 Thread Jens Axboe
On 11/09/2017 10:07 AM, Thomas Gleixner wrote: > On Thu, 9 Nov 2017, Jens Axboe wrote: > >> On 11/09/2017 09:01 AM, Sagi Grimberg wrote: >>>> Now you try to blame the people who implemented the managed affinity stuff >>>> for the wreckage, which was created

Re: mlx5 broken affinity

2017-11-09 Thread Jens Axboe
On 11/09/2017 02:23 PM, Thomas Gleixner wrote: > On Thu, 9 Nov 2017, Jens Axboe wrote: >> On 11/09/2017 10:03 AM, Thomas Gleixner wrote: >>> On Thu, 9 Nov 2017, Jens Axboe wrote: >>>> On 11/09/2017 07:19 AM, Thomas Gleixner wrote: >>>> If that's the

Re: [PATCH 19/22] block: DAC960: shut up format-overflow warning

2017-07-14 Thread Jens Axboe
> > Both of these seem appropriately sized, and using snprintf() > instead of sprintf() improves this by ensuring that even > incorrect data won't cause undefined behavior here. Thanks Arnd, added for 4.14. -- Jens Axboe

Re: [PATCH 2/6] nbd: make device_attribute const

2017-08-28 Thread Jens Axboe
On 08/21/2017 05:43 AM, Bhumika Goyal wrote: > Make this const as is is only passed as an argument to the > function device_create_file and device_remove_file and the corresponding > arguments are of type const. > Done using Coccinelle Added for 4.14, thanks. -- Jens Axboe

Re: [PATCH 13/31] timer: Remove meaningless .data/.function assignments

2017-09-01 Thread Jens Axboe
On 08/31/2017 05:29 PM, Kees Cook wrote: > Several timer users needlessly reset their .function/.data fields during > their timer callback, but nothing else changes them. Some users do not > use their .data field at all. Each instance is removed here. For amiflop: Acked-by: Jens Axboe

[PATCH][RFC] network splice receive

2007-06-05 Thread Jens Axboe
tree (at 2.6.22-rc4 right now). Let me know if I should supply netdev branch patches instead. -- Jens Axboe >From 592c46ea813c31c0d6b28bf543ce2f5dd884a75e Mon Sep 17 00:00:00 2001 From: Jens Axboe <[EMAIL PROTECTED]> Date: Mon, 4 Jun 2007 15:06:43 +0200 Subject: [PATCH] [NET] tcp_

Re: [PATCH][RFC] network splice receive

2007-06-05 Thread Jens Axboe
On Tue, Jun 05 2007, Jens Axboe wrote: > Seems to work reasonably well for me, sometimes I do see small ranges > inside the output file that are not correct, but I haven't been able to > reproduce today. I think it has to do with page reuse, hence the > NET_COPY_SPLICE ifdef that

Re: [PATCH][RFC] network splice receive

2007-06-05 Thread Jens Axboe
On Tue, Jun 05 2007, Jens Axboe wrote: > On Tue, Jun 05 2007, Jens Axboe wrote: > > Seems to work reasonably well for me, sometimes I do see small ranges > > inside the output file that are not correct, but I haven't been able to > > reproduce today. I think it has to do

Re: [PATCH][RFC] network splice receive

2007-06-06 Thread Jens Axboe
On Tue, Jun 05 2007, jamal wrote: > On Tue, 2007-05-06 at 14:20 +0200, Jens Axboe wrote: > > > > > > > 1800 4ff3 937f e000 6381 7275 0008 > > > > > > Perhaps that hex pattern rings a bell with someone intimate with the > > > networking. Th

Re: [PATCH][RFC] network splice receive

2007-06-06 Thread Jens Axboe
On Tue, Jun 05 2007, Evgeniy Polyakov wrote: > On Tue, Jun 05, 2007 at 10:05:43AM +0200, Jens Axboe ([EMAIL PROTECTED]) > wrote: > > Here's an implementation of tcp network splice receive support. It's > > originally based on the patch set that Intel posted some time

Re: [PATCH][RFC] network splice receive

2007-06-07 Thread Jens Axboe
On Thu, Jun 07 2007, Evgeniy Polyakov wrote: > On Wed, Jun 06, 2007 at 09:17:25AM +0200, Jens Axboe ([EMAIL PROTECTED]) > wrote: > > > Some pages have zero reference counter here. > > > > But it's somewhat annoying to get pages with zero reference counts > &g

Re: [PATCH][RFC] network splice receive

2007-06-08 Thread Jens Axboe
On Thu, Jun 07 2007, Evgeniy Polyakov wrote: > On Thu, Jun 07, 2007 at 12:51:59PM +0200, Jens Axboe ([EMAIL PROTECTED]) > wrote: > > > What bout checking if page belongs to kmalloc cache (or any other cache > > > via priviate pointers) and do not perform any kind of ref

Re: [PATCH][RFC] network splice receive

2007-06-08 Thread Jens Axboe
On Fri, Jun 08 2007, David Miller wrote: > From: Jens Axboe <[EMAIL PROTECTED]> > Date: Fri, 8 Jun 2007 09:48:24 +0200 > > > Perhaps it's possible to solve this at a different level - can we hang > > on to the skb until the pipe buffer has been consumed, and pre

Re: [PATCH][RFC] network splice receive

2007-06-08 Thread Jens Axboe
On Fri, Jun 08 2007, Evgeniy Polyakov wrote: > On Fri, Jun 08, 2007 at 10:38:53AM +0200, Jens Axboe ([EMAIL PROTECTED]) > wrote: > > On Fri, Jun 08 2007, David Miller wrote: > > > From: Jens Axboe <[EMAIL PROTECTED]> > > > Date: Fri, 8 Jun 2007 09:48:24 +0200

Re: [PATCH][RFC] network splice receive

2007-06-08 Thread Jens Axboe
On Fri, Jun 08 2007, Evgeniy Polyakov wrote: > On Fri, Jun 08, 2007 at 11:04:40AM +0200, Jens Axboe ([EMAIL PROTECTED]) > wrote: > > OK, so a delayed empty of the pipe could end up causing packet drops > > elsewhere due to allocation exhaustion? > > Yes. > > >

Re: [PATCH][RFC] network splice receive

2007-06-08 Thread Jens Axboe
On Fri, Jun 08 2007, Evgeniy Polyakov wrote: > On Fri, Jun 08, 2007 at 04:14:52PM +0200, Jens Axboe ([EMAIL PROTECTED]) > wrote: > > Here's a start, for the splice side at least of storing a buf-private > > entity with the ops. > > :) I tested the same implementatio

Re: [PATCH][RFC] network splice receive

2007-06-08 Thread Jens Axboe
eated > blocks of data sometimes. Cloned skb usage is likely too big overhead, > although for receiving fast clone is unused in most cases, so there > might be some gain. > > Attached your patch with above changes. Thanks, I'll fiddle with this on monday. -- Jens Axboe - To

Re: [PATCH][RFC] network splice receive

2007-06-11 Thread Jens Axboe
ize issue is resolved at least. -- Jens Axboe - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH][RFC] network splice receive v2

2007-06-11 Thread Jens Axboe
lock.git/ and it's based on Linus main tree. Let me know if I should supply netdev branch patches instead, or even just provide a rolled up patch (or patch series) for anyone curious to test or play with it. -- Jens Axboe >From fd79bf84fdeb15b72f256c342609257ae8a56235 Mon Sep 17 00

[PATCH 0/3] Splice network receive support

2007-06-12 Thread Jens Axboe
Hi, This series of patches applies on top of the splice series just posted. It implements basic network receive support, ie splicing from a socket to a pipe. There seems to be a skhead_buff_cache leak somewhere that I need to track down, otherwise it works fine for me. -- Jens Axboe - To

[PATCH 1/3] splice: don't assume regular pages in splice_to_pipe()

2007-06-12 Thread Jens Axboe
Allow caller to pass in a release function, there might be other resources that need releasing as well. Needed for network receive. Signed-off-by: Jens Axboe <[EMAIL PROTECTED]> --- fs/splice.c|9 - include/linux/splice.h |1 + 2 files changed, 9 insertions

[PATCH 3/3] TCP splice receive support

2007-06-12 Thread Jens Axboe
Support for network splice receive. Signed-off-by: Jens Axboe <[EMAIL PROTECTED]> --- include/linux/net.h|3 + include/linux/skbuff.h |5 + include/net/tcp.h |3 + net/core/skbuff.c | 231 net/ipv4/af_inet.c

[PATCH 2/3] tcp_read_sock: alloc recv_actor() return return negative error value

2007-06-12 Thread Jens Axboe
Signed-off-by: Jens Axboe <[EMAIL PROTECTED]> --- net/ipv4/tcp.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index cd3c7e9..450f44b 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -1064,7 +1064,11 @@ int tcp_read_sock(

Re: [PATCH][RFC] network splice receive

2007-06-12 Thread Jens Axboe
On Tue, Jun 12 2007, Evgeniy Polyakov wrote: > On Sat, Jun 09, 2007 at 08:36:09AM +0200, Jens Axboe ([EMAIL PROTECTED]) > wrote: > > On Fri, Jun 08 2007, Evgeniy Polyakov wrote: > > > On Fri, Jun 08, 2007 at 06:57:25PM +0400, Evgeniy Polyakov ([EMAIL > > > PROTECT

Re: [PATCH][RFC] network splice receive

2007-06-12 Thread Jens Axboe
s ugly). There's quite a big difference between changing parts of the elements of a structure to just grabbing a reference to it. If the skb cannot be referenced, skb_get() should return NULL. But that aside, I see the issue. I'll just stick to the clone, it works fine as-is (well almo

Re: [PATCH][RFC] network splice receive

2007-06-12 Thread Jens Axboe
;t anymore, see the version posted today (or yesterday, but it would be silly to read older code than the newest :-) -- Jens Axboe - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH][RFC] network splice receive v2

2007-06-12 Thread Jens Axboe
On Tue, Jun 12 2007, Evgeniy Polyakov wrote: > On Mon, Jun 11, 2007 at 01:59:26PM +0200, Jens Axboe ([EMAIL PROTECTED]) > wrote: > > Patches are against the #splice branch of the block repo, "official" url > > of that is: > > > > git://git.kernel.dk/da

Re: [PATCH][RFC] network splice receive v2

2007-06-12 Thread Jens Axboe
On Tue, Jun 12 2007, Jens Axboe wrote: > On Tue, Jun 12 2007, Evgeniy Polyakov wrote: > > On Mon, Jun 11, 2007 at 01:59:26PM +0200, Jens Axboe ([EMAIL PROTECTED]) > > wrote: > > > Patches are against the #splice branch of the block repo, "official" url

Re: [PATCH][RFC] network splice receive v2

2007-06-13 Thread Jens Axboe
On Wed, Jun 13 2007, Evgeniy Polyakov wrote: > On Tue, Jun 12, 2007 at 08:17:32PM +0200, Jens Axboe ([EMAIL PROTECTED]) > wrote: > > On Tue, Jun 12 2007, Evgeniy Polyakov wrote: > > > On Mon, Jun 11, 2007 at 01:59:26PM +0200, Jens Axboe ([EMAIL PROTECTED]) > > &

Re: [PATCH][RFC] network splice receive v2

2007-06-14 Thread Jens Axboe
otten about that, was working on getting vmsplice into shape the last two days. Interesting that you mention the last page, I'll dig in now! Any more info on this (how did you notice the leak originates from there)? > Thanks Jens, good work. Thanks, you're welcome! -- Jens

Re: [PATCH][RFC] network splice receive v2

2007-06-15 Thread Jens Axboe
On Fri, Jun 15 2007, Evgeniy Polyakov wrote: > On Thu, Jun 14, 2007 at 01:59:02PM +0200, Jens Axboe ([EMAIL PROTECTED]) > wrote: > > On Thu, Jun 14 2007, Evgeniy Polyakov wrote: > > > On Wed, Jun 13, 2007 at 12:01:04PM +0400, Evgeniy Polyakov ([EMAIL > > > PRO

Re: [PATCH][RFC] network splice receive v2

2007-06-15 Thread Jens Axboe
On Fri, Jun 15 2007, Evgeniy Polyakov wrote: > On Fri, Jun 15, 2007 at 10:43:18AM +0200, Jens Axboe ([EMAIL PROTECTED]) > wrote: > > > So, things turned down to be not in the __splice_from_pipe(), but > > > splice_to_pipe(). Attached patch fixes a leak for me. > >

Re: [PATCH][RFC] network splice receive v2

2007-06-15 Thread Jens Axboe
On Fri, Jun 15 2007, Evgeniy Polyakov wrote: > On Fri, Jun 15, 2007 at 11:34:30AM +0200, Jens Axboe ([EMAIL PROTECTED]) > wrote: > > > Both spd->nr_pages and page_nr are equal to 1. When spd->nr_pages > > > was 2 there was only 1 free slot in pipe_buffer. > >

Re: [PATCH v2.6.22-rc5] cxgb2: handle possible NULL pointer dereferencing

2007-06-21 Thread Jens Axboe
e NULL. > > This patch fixes this. Patch looks odd - bi is dereferenced a number of times after that loop anyway, so I don't see your patch fixing much. -- Jens Axboe - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [E

Re: [PATCH v2.6.22-rc5] cxgb2: handle possible NULL pointer dereferencing

2007-06-21 Thread Jens Axboe
On Thu, Jun 21 2007, pradeep singh wrote: > Hi > On 6/21/07, Jens Axboe <[EMAIL PROTECTED]> wrote: > >On Thu, Jun 21 2007, pradeep singh wrote: > >> Hi, > >> > >> Chelsio's in kernel 10G driver does not checks the return value from > >>

[PATCH][RFC] network splice receive v3

2007-07-11 Thread Jens Axboe
erimental patch in there that allows vmsplice directly to user memory, that still needs some work though. Comments, testing welcome! -- Jens Axboe >From e59a68f2d7d261b301960b97659910aab8e3d776 Mon Sep 17 00:00:00 2001 From: Jens Axboe <[EMAIL PROTECTED]> Date: Mon, 11 Jun 2007 13:00:32 +0

Re: [PATCH][RFC] network splice receive v3

2007-07-11 Thread Jens Axboe
On Wed, Jul 11 2007, Joel Becker wrote: > On Wed, Jul 11, 2007 at 11:19:27AM +0200, Jens Axboe wrote: > > Subject: [PATCH] splice: don't assume regular pages in splice_to_pipe() > > > > Allow caller to pass in a release function, there might be > > other resou

Re: TCP stalls in current git, possibly splice related

2007-07-12 Thread Jens Axboe
ect found the > > > following as a possible cause: > > > > To add to this James is seeing this with distcc I believe. > > Correct. I'll try and reproduce. -- Jens Axboe - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a

Re: [2.6 patch] more ACSI removal

2007-07-12 Thread Jens Axboe
ristate "Atari SLM laser printer support" > - depends on ATARI && ATARI_ACSI!=n > + depends on ATARI > > > Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> Thanks Adrian, applied! -- Jens Axboe - To unsubscribe from this list: send the line &q

Re: TCP stalls in current git, possibly splice related

2007-07-12 Thread Jens Axboe
On Fri, Jul 13 2007, Jens Axboe wrote: > On Thu, Jul 12 2007, James Morris wrote: > > On Thu, 12 Jul 2007, David Miller wrote: > > > > > From: James Morris <[EMAIL PROTECTED]> > > > Date: Thu, 12 Jul 2007 16:12:25 -0400 (EDT) > > > > > > &

Re: [PATCH][RFC] network splice receive v3

2007-07-13 Thread Jens Axboe
On Thu, Jul 12 2007, Evgeniy Polyakov wrote: > On Wed, Jul 11, 2007 at 11:19:27AM +0200, Jens Axboe ([EMAIL PROTECTED]) > wrote: > > Hi, > > Hi Jens. > > > Here's an updated implementation of tcp network splice receive support. > > It actually wor

Re: TCP stalls in current git, possibly splice related

2007-07-13 Thread Jens Axboe
_splice_direct(struct file *in, loff_t *ppos, struct file *out, .pos= *ppos, .u.file = out, }; - size_t ret; + long ret; ret = splice_direct_to_actor(in, &sd, direct_splice_actor); - *ppos = sd.pos; + if (ret > 0) +

Re: TCP stalls in current git, possibly splice related

2007-07-13 Thread Jens Axboe
On Fri, Jul 13 2007, Jens Axboe wrote: > On Fri, Jul 13 2007, Jens Axboe wrote: > > On Thu, Jul 12 2007, James Morris wrote: > > > On Thu, 12 Jul 2007, David Miller wrote: > > > > > > > From: James Morris <[EMAIL PROTECTED]> >

Re: TCP stalls in current git, possibly splice related

2007-07-16 Thread Jens Axboe
On Mon, Jul 16 2007, Johannes Berg wrote: > On Fri, 2007-07-13 at 13:05 +0200, Jens Axboe wrote: > > On Fri, Jul 13 2007, Johannes Berg wrote: > > > On Thu, 2007-07-12 at 16:12 -0400, James Morris wrote: > > > > I'm seeing TCP connection stalls with current g

Re: [2.6 patch] more ACSI removal

2007-07-16 Thread Jens Axboe
been compiling for 5 years, so it can't be that big of an issue. I thought you had been cc'ed on the discussion, but I can't seem to find the thread now even. -- Jens Axboe - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a messag

  1   2   >