[PATCH] net: tcp6: fix double call of tcp_v6_fill_cb()

2015-03-23 Thread Alexey Kodanev
to the beginning of 'struct tcp_skb_cb' and getting skb->next, TCP_SKB_CB(skb)->seq and TCP_SKB_CB(skb)->end_seq on the same cache line by moving 'cb[48]' closer to 'skb->next', above the *sk and *dev pointers. Signed-off-by: Alexey Kodanev --- include/

Re: [PATCH] selftests/zram: Adding zram tests

2015-08-14 Thread Alexey Kodanev
ned-off-by: Alexey Kodanev Best regards, Alexey -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH] net: sysctl_net_core: check SNDBUF and RCVBUF for min length

2015-03-11 Thread Alexey Kodanev
le minimum is 1, so we can get another kernel panic: ... BUG: unable to handle kernel paging request at 88013caee5c0 IP: [] __alloc_skb+0x12f/0x1f0 ... Signed-off-by: Alexey Kodanev --- net/core/sysctl_net_core.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) di

Re: [PATCH] net: tcp6: fix double call of tcp_v6_fill_cb()

2015-03-23 Thread Alexey Kodanev
Hi Eric, On 03/23/2015 05:38 PM, Eric Dumazet wrote: On Mon, 2015-03-23 at 13:38 +0300, Alexey Kodanev wrote: \ @@ -1538,7 +1525,7 @@ do_time_wait: &ipv6_hdr(skb)->saddr, th->source, &ipv6_h

Re: [PATCH] net: tcp6: fix double call of tcp_v6_fill_cb()

2015-03-25 Thread Alexey Kodanev
Hi! On 03/23/2015 04:52 PM, Eric Dumazet wrote: On Mon, 2015-03-23 at 13:38 +0300, Alexey Kodanev wrote: Regression introduced by commit 2dc49d1680. tcp_v6_fill_cb() will be called twice if socket's state changes from TCP_TIME_WAIT to TCP_LISTEN. That can result in performance loss and co

[PATCH] kernel/locking/locktorture: fix deadlock in 'rw_lock_irq' type

2015-03-06 Thread Alexey Kodanev
torture_rwlock_read_unlock_irq() must use read_unlock_irqrestore() instead of write_unlock_irqrestore(). Use read_unlock_irqrestore() instead of write_unlock_irqrestore(). Signed-off-by: Alexey Kodanev --- kernel/locking/locktorture.c |2 +- 1 files changed, 1 insertions(+), 1 deletions

[PATCH] vxlan: fix wrong usage of VXLAN_VID_MASK

2015-03-13 Thread Alexey Kodanev
usable vni range from 0..16777215 to 0..65535. Also, it doesn't really check whether RCO bits processed or not. Fix it by adding new VNI mask which has all 32 bits of VNI field: 24 bits for id and 8 bits for other usage. Signed-off-by: Alexey Kodanev --- drivers/net/vxlan.c |4 ++-- incl