Re: [PATCHv2 1/1] net: rds: add per rds connection cache statistics

2019-06-03 Thread santosh . shilimkar
e rds.h in rds-tools is not related with the kernel rds.h, the change in kernel rds.h does not affect rds-tools. rds-info in rds-tools 2.0.5 and 2.0.6 is tested with this commit. It works well. Signed-off-by: Zhu Yanjun --- V1->V2: RDS CI is removed. Thanks for testing compatibility.

Re: [PATCH 1/1] net: rds: fix memory leak in rds_ib_flush_mr_pool

2019-06-06 Thread santosh . shilimkar
ean_list. So clean_nodes is discarded. It can not be used again. The workqueue is executed periodically. So more and more clean_nodes are discarded. Finally the clean_list is NULL. Then this problem will occur. Fixes: 1bc144b62524 ("net, rds, Replace xlist in net/rds/xlist.h with llist") Signed-off-by: Zhu Yanjun --- Thanks. Acked-by: Santosh Shilimkar

Re: [PATCH net v3 1/7] net/rds: Give fr_state a chance to transition to FRMR_IS_FREE

2019-07-16 Thread santosh . shilimkar
and "drop_list" before they even have a chance to be properly invalidated. Signed-off-by: Gerd Rausch --- Thanks for the update. Acked-by: Santosh Shilimkar

Re: [PATCH net v3 2/7] net/rds: Get rid of "wait_clean_list_grace" and add locking

2019-07-16 Thread santosh . shilimkar
Cases where locking is needed: * If we have multiple consumers with llist_del_first used in one consumer, * and llist_del_first or llist_del_all used in other consumers, * then a lock is needed. Also, while at it, drop the unused "pool" parameter from "list_to_llist_nodes". Signed-off-by: Gerd Rausch --- Acked-by: Santosh Shilimkar

Re: [PATCH net v3 4/7] net/rds: Fix NULL/ERR_PTR inconsistency

2019-07-16 Thread santosh . shilimkar
On 7/16/19 3:29 PM, Gerd Rausch wrote: Make function "rds_ib_try_reuse_ibmr" return NULL in case memory region could not be allocated, since callers simply check if the return value is not NULL. Signed-off-by: Gerd Rausch --- Acked-by: Santosh Shilimkar

Re: [PATCH net v3 3/7] net/rds: Wait for the FRMR_IS_FREE (or FRMR_IS_STALE) transition after posting IB_WR_LOCAL_INV

2019-07-16 Thread santosh . shilimkar
an invalid access error in a race from a pending "IB_WR_LOCAL_INV" operation with a teardown ("dma_unmap_sg", "put_page") and de-registration ("ib_dereg_mr") of the corresponding memory region. Signed-off-by: Gerd Rausch --- Thanks for updated version. Acked-by: Santosh Shilimkar

Re: [PATCH net v3 5/7] net/rds: Set fr_state only to FRMR_IS_FREE if IB_WR_LOCAL_INV had been successful

2019-07-16 Thread santosh . shilimkar
On 7/16/19 3:29 PM, Gerd Rausch wrote: Fix a bug where fr_state first goes to FRMR_IS_STALE, because of a failure of operation IB_WR_LOCAL_INV, but then gets set back to "FRMR_IS_FREE" uncoditionally, even though the operation failed. Signed-off-by: Gerd Rausch --- Acked-b

Re: [PATCH net v3 7/7] net/rds: Initialize ic->i_fastreg_wrs upon allocation

2019-07-16 Thread santosh . shilimkar
shutdown" will spin forever, waiting for it to go back to "RDS_IB_DEFAULT_FR_WR", which of course will never happen as there are no outstanding work requests. Signed-off-by: Gerd Rausch --- Acked-by: Santosh Shilimkar

Re: [PATCH net v3 6/7] net/rds: Keep track of and wait for FRWR segments in use upon shutdown

2019-07-16 Thread santosh . shilimkar
alled "i_fastreg_inuse_count" that keeps track of how many FRWR memory segments are out there marked "FRMR_IS_INUSE" (and also wake_up rds_ib_ring_empty_wait, as they go away). Signed-off-by: Gerd Rausch --- Acked-by: Santosh Shilimkar

Re: [PATCH] RDMA: Add rdma_connect_locked()

2020-10-26 Thread santosh . shilimkar
&conn_param); if (ret) - rds_ib_conn_error(conn, "rdma_connect failed (%d)\n", ret); + rds_ib_conn_error(conn, "rdma_connect_locked failed (%d)\n", + ret); out: /* Beware - returning non-zero tells the rdma_cm to destroy For RDS part, Acked-by: Santosh Shilimkar

Re: [PATCH for-next v3 0/2] Introduce rdma_set_min_rnr_timer() and use it in RDS

2021-03-31 Thread Santosh Shilimkar
[...] Thanks Haakon. Patchset looks fine by me. Acked-by: Santosh Shilimkar

[PATCH rdma-next 8/8] net/rds: Move to client_supported callback

2021-04-05 Thread Santosh Shilimkar
y: Parav Pandit > Signed-off-by: Leon Romanovsky > --- > net/rds/ib.c | 20 +——— Looks fine by me. Acked-by: Santosh Shilimkar

Re: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs

2021-04-05 Thread Santosh Shilimkar
> On Apr 5, 2021, at 7:08 AM, Leon Romanovsky wrote: > > On Mon, Apr 05, 2021 at 03:41:15PM +0200, Christoph Hellwig wrote: >> On Mon, Apr 05, 2021 at 08:23:54AM +0300, Leon Romanovsky wrote: >>> From: Leon Romanovsky >>> From Avihai, >>> >>> Relaxed Ordering is a PCIe mechanism that rel

Re: [PATCH] net/rds: Avoid potential use after free in rds_send_remove_from_sock

2021-04-07 Thread Santosh Shilimkar
gt; Signed-off-by: Aditya Pakki > --- > net/rds/message.c | 1 + > net/rds/send.c| 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) Looks fine by me. Thanks. Acked-by: Santosh Shilimkar

Re: [PATCH] net/rds: restrict iovecs length for RDS_CMSG_RDMA_ARGS

2021-02-01 Thread Santosh Shilimkar
include/linux/slab.h:621 [inline] > rds_rdma_extra_size+0xb2/0x3b0 net/rds/rdma.c:568 > rds_rm_size net/rds/send.c:928 [inline] > > Reported-by: syzbot+1bd2b07f93745fa38...@syzkaller.appspotmail.com > Signed-off-by: Sabyrzhan Tasbolatov > — Looks fine by me. Acked-by: Santosh Shilimkar

Re: [PATCH] net/rds: correct socket tunable error in rds_tcp_tune()

2021-03-17 Thread Santosh Shilimkar
vbuf untouched. > > Signed-off-by: William Kucharski > — Looks good. Thanks !! Acked-by: Santosh Shilimkar

Re: KASAN: null-ptr-deref Read in rds_ib_get_mr

2018-05-11 Thread Santosh Shilimkar
On 5/11/2018 12:48 AM, Yanjun Zhu wrote: On 2018/5/11 13:20, DaeRyong Jeong wrote: We report the crash: KASAN: null-ptr-deref Read in rds_ib_get_mr Note that this bug is previously reported by syzkaller. https://syzkaller.appspot.com/bug?id=0bb56a5a48b000b52aa2b0d8dd20b1f545214d91 Nonethele

Re: [PATCH 1/1] Revert "rds: ib: add error handle"

2018-04-24 Thread Santosh Shilimkar
On 4/24/2018 4:25 AM, Dag Moxnes wrote: I was going to suggest the following correction: If all agree that this is the correct way of doing it, I can go ahead and an post it. Yes please. Go ahead and post your fix. Regards, Santosh P.S: Avoid top posting please.

Re: [PATCH] rds: ib: Fix missing call to rds_ib_dev_put in rds_ib_setup_qp

2018-04-25 Thread Santosh Shilimkar
andle") Signed-off-by: Dag Moxnes --- Thanks Dag for following it up. Acked-by: Santosh Shilimkar

Re: [PATCH net-next 0/7] net/rds: RDMA fixes

2019-07-01 Thread santosh . shilimkar
On 7/1/19 9:39 AM, Gerd Rausch wrote: A number of net/rds fixes necessary to make "rds_rdma.ko" pass some basic Oracle internal tests. Gerd Rausch (7): net/rds: Give fr_state a chance to transition to FRMR_IS_FREE net/rds: Get rid of "wait_clean_list_grace" and add locking net/rds: Wait

Re: [PATCH net-next 5/7] net/rds: Set fr_state only to FRMR_IS_FREE if IB_WR_LOCAL_INV had been successful

2019-07-01 Thread santosh . shilimkar
On 7/1/19 9:40 AM, Gerd Rausch wrote: Fix a bug where fr_state first goes to FRMR_IS_STALE, because of a failure of operation IB_WR_LOCAL_INV, but then gets set back to "FRMR_IS_FREE" uncoditionally, even though the operation failed. Signed-off-by: Gerd Rausch --- net/rds/ib_frmr.c | 3 ++-

Re: [PATCH net-next 6/7] net/rds: Keep track of and wait for FRWR segments in use upon shutdown

2019-07-01 Thread santosh . shilimkar
On 7/1/19 9:40 AM, Gerd Rausch wrote: Since "rds_ib_free_frmr" and "rds_ib_free_frmr_list" simply put the FRMR memory segments on the "drop_list" or "free_list", and it is the job of "rds_ib_flush_mr_pool" to reap those entries by ultimately issuing a "IB_WR_LOCAL_INV" work-request, we need to tr

Re: [PATCH net-next 7/7] net/rds: Initialize ic->i_fastreg_wrs upon allocation

2019-07-01 Thread santosh . shilimkar
On 7/1/19 9:40 AM, Gerd Rausch wrote: Otherwise, if an IB connection is torn down before "rds_ib_setup_qp" is called, the value of "ic->i_fastreg_wrs" is still at zero (as it wasn't initialized by "rds_ib_setup_qp"). Consequently "rds_ib_conn_path_shutdown" will spin forever, waiting for it to go

Re: [PATCH net-next 4/7] net/rds: Fix NULL/ERR_PTR inconsistency

2019-07-01 Thread santosh . shilimkar
On 7/1/19 9:39 AM, Gerd Rausch wrote: Make function "rds_ib_try_reuse_ibmr" return NULL in case memory region could not be allocated, since callers simply check if the return value is not NULL. Signed-off-by: Gerd Rausch --- Looks good to me. Will add this to other fixes.

Re: [PATCH net-next 2/7] net/rds: Get rid of "wait_clean_list_grace" and add locking

2019-07-01 Thread santosh . shilimkar
On 7/1/19 9:39 AM, Gerd Rausch wrote: Waiting for activity on the "clean_list" to quiesce is no substitute for proper locking. We can have multiple threads competing for "llist_del_first" via "rds_ib_reuse_mr", and a single thread competing for "llist_del_all" and "llist_del_first" via "rds_ib_f

Re: [PATCH net-next 3/7] net/rds: Wait for the FRMR_IS_FREE (or FRMR_IS_STALE) transition after posting IB_WR_LOCAL_INV

2019-07-01 Thread santosh . shilimkar
On 7/1/19 9:39 AM, Gerd Rausch wrote: In order to: 1) avoid a silly bouncing between "clean_list" and "drop_list" triggered by function "rds_ib_reg_frmr" as it is releases frmr regions whose state is not "FRMR_IS_FREE" right away. 2) prevent an invalid access error in a race from a pendi

Re: [PATCH net-next 1/7] net/rds: Give fr_state a chance to transition to FRMR_IS_FREE

2019-07-01 Thread santosh . shilimkar
On 7/1/19 1:50 PM, Gerd Rausch wrote: Hi David, On 01/07/2019 11.27, David Miller wrote: From: Gerd Rausch Date: Mon, 1 Jul 2019 09:39:44 -0700 + /* Memory regions make it onto the "clean_list" via +* "rds_ib_flush_mr_pool", after the memory regi

Re: [PATCH net-next 3/7] net/rds: Wait for the FRMR_IS_FREE (or FRMR_IS_STALE) transition after posting IB_WR_LOCAL_INV

2019-07-01 Thread santosh . shilimkar
On 7/1/19 1:55 PM, Gerd Rausch wrote: Hi Santosh, On 01/07/2019 13.41, santosh.shilim...@oracle.com wrote: @@ -144,7 +146,29 @@ static int rds_ib_post_reg_frmr(struct rds_ib_mr *ibmr)   if (printk_ratelimit())   pr_warn("RDS/IB: %s returned error(%d)\n",  

Re: [PATCH net-next 3/7] net/rds: Wait for the FRMR_IS_FREE (or FRMR_IS_STALE) transition after posting IB_WR_LOCAL_INV

2019-07-01 Thread santosh . shilimkar
On 7/1/19 2:06 PM, Gerd Rausch wrote: Hi Santosh, On 01/07/2019 14.00, santosh.shilim...@oracle.com wrote: Look for command timeout in CX3 sources. 60 second is upper bound in CX3. Its not standard in specs(at least not that I know) though and may vary from vendor to vendor. I am not se

Re: [PATCH net-next 3/7] net/rds: Wait for the FRMR_IS_FREE (or FRMR_IS_STALE) transition after posting IB_WR_LOCAL_INV

2019-07-02 Thread santosh . shilimkar
On 7/1/19 10:11 PM, Gerd Rausch wrote: Hi Santosh, On 01/07/2019 19.28, santosh.shilim...@oracle.com wrote: Below. All command timeouts are 60 seconds. enum {     MLX4_CMD_TIME_CLASS_A   = 6,     MLX4_CMD_TIME_CLASS_B   = 6,     MLX4_CMD_TIME_CLASS_C   = 6, }; T

Re: [PATCH net-next 3/7] net/rds: Wait for the FRMR_IS_FREE (or FRMR_IS_STALE) transition after posting IB_WR_LOCAL_INV

2019-07-02 Thread santosh . shilimkar
On 7/2/19 2:05 PM, Gerd Rausch wrote: On 02/07/2019 09.49, santosh.shilim...@oracle.com wrote: On 7/1/19 10:11 PM, Gerd Rausch wrote: For the registration work-requests there is a benefit to wait a short amount of time only (the trade-off described in patch #1 of this series). Actually we sho

Re: [PATCH net-next 3/7] net/rds: Wait for the FRMR_IS_FREE (or FRMR_IS_STALE) transition after posting IB_WR_LOCAL_INV

2019-07-02 Thread santosh . shilimkar
On 7/2/19 3:12 PM, Gerd Rausch wrote: On 02/07/2019 14.18, santosh.shilim...@oracle.com wrote: On 7/2/19 2:05 PM, Gerd Rausch wrote: What do you call "RDS_GET_MR" semantics? Its a blocking socket call. Meaning after this call return to the user, the key must be valid. With async registration

[net][PATCH 1/5] rds: fix reordering with composite message notification

2019-07-09 Thread Santosh Shilimkar
e send completes fix was done by Venkat Venkatsubra in downstream kernel. Reviewed-and-tested-by: Zhu Yanjun Reviewed-by: Gerd Rausch Signed-off-by: Santosh Shilimkar --- net/rds/ib_send.c | 29 + net/rds/rdma.c| 10 -- net/rds/rds.h | 1 - net/rds/se

[net][PATCH 0/5] rds fixes

2019-07-09 Thread Santosh Shilimkar
nd invalidation path" rds: Accept peer connection reject messages due to incompatible version rds: Return proper "tos" value to user-space Santosh Shilimkar (2): rds: fix reordering with composite message notification rds: avoid version downgrade to legitimat

[net][PATCH 2/5] Revert "RDS: IB: split the mr registration and invalidation path"

2019-07-09 Thread Santosh Shilimkar
inal commit was done in the name of performance: to remove the performance bottleneck No performance benefit could be observed with a fixed-up version of the original commit measured between two Oracle X7 servers, both equipped with Mellanox Connect-X5 HCAs. The prudent course of action is to

[net][PATCH 4/5] rds: Return proper "tos" value to user-space

2019-07-09 Thread Santosh Shilimkar
From: Gerd Rausch The proper "tos" value needs to be returned to user-space (sockopt RDS_INFO_CONNECTIONS). Fixes: 3eb450367d08 ("rds: add type of service(tos) infrastructure") Signed-off-by: Gerd Rausch Reviewed-by: Zhu Yanjun Signed-off-by: Santosh Shilimkar --- net/

[net][PATCH 5/5] rds: avoid version downgrade to legitimate newer peer connections

2019-07-09 Thread Santosh Shilimkar
iated connection with say tos 8 while usual connection racing can get downgraded to tos 0 which is not desirable. Patch fixes above issue introduced by commit commit d021fabf525f ("rds: rdma: add consumer reject") Reported-by: Yanjun Zhu Tested-by: Yanjun Zhu Signed-off-by: Sa

[net][PATCH 3/5] rds: Accept peer connection reject messages due to incompatible version

2019-07-09 Thread Santosh Shilimkar
onnection: if (rds_conn_state(conn) == RDS_CONN_CONNECTING) { /* Wait and see - our connect may still be succeeding */ rds_ib_stats_inc(s_ib_connect_raced); } goto out; #6 Host-A receives an "RDMA_CM_EVENT_REJECTED" event (from

Re: [PATCH 5/7] RDS: make rhashtable_params const

2017-08-25 Thread Santosh Shilimkar
8/25/2017 7:21 AM, Bhumika Goyal wrote: Make this const as it is either used during a copy operation or passed to a const argument of the function rhltable_init Signed-off-by: Bhumika Goyal --- Acked-by: Santosh Shilimkar

Re: [PATCH net-next 1/5] RDS: Re-add pf/sol access via sysctl

2019-08-13 Thread santosh . shilimkar
Grover Signed-off-by: Gerd Rausch --- Acked-by: Santosh Shilimkar

Re: [PATCH net-next 3/5] RDS: don't use GFP_ATOMIC for sk_alloc in rds_create

2019-08-13 Thread santosh . shilimkar
On 8/13/19 11:21 AM, Gerd Rausch wrote: From: Chris Mason Date: Fri, 3 Feb 2012 11:08:51 -0500 Signed-off-by: Chris Mason Signed-off-by: Bang Nguyen Signed-off-by: Gerd Rausch Signed-off-by: Somasundaram Krishnasamy ---Acked-by: Santosh Shilimkar

Re: [PATCH net-next 4/5] net/rds: Add a few missing rds_stat_names entries

2019-08-13 Thread santosh . shilimkar
done in the name of compatibility with the Oracle internal code-base. s_recv_bytes_added_to_socket -> "recv_bytes_added_to_sock" s_recv_bytes_removed_from_socket -> "recv_bytes_freed_fromsock" Fixes: 192a798f5299 ("RDS: add stat for socket recv memory usage&q

Re: [PATCH net-next 5/5] rds: check for excessive looping in rds_send_xmit

2019-08-13 Thread santosh . shilimkar
eed Andy's SOB as well. Signed-off-by: Gerd Rausch Other than that, Acked-by: Santosh Shilimkar

Re: [PATCH net-next 2/5] RDS: limit the number of times we loop in rds_send_xmit

2019-08-13 Thread santosh . shilimkar
e" if "rds_ib_recv_refill_one" fails. Signed-off-by: Gerd Rausch --- Acked-by: Santosh Shilimkar

Re: [PATCH net-next 1/5] RDS: Re-add pf/sol access via sysctl

2019-08-14 Thread santosh . shilimkar
On 8/14/19 8:56 AM, Doug Ledford wrote: On Tue, 2019-08-13 at 11:20 -0700, Gerd Rausch wrote: From: Andy Grover Date: Tue, 24 Nov 2009 15:35:51 -0800 Although RDS has an official PF_RDS value now, existing software expects to look for rds sysctls to determine it. We need to maintain these f

Re: [PATCH net-next 1/5] RDS: Re-add pf/sol access via sysctl

2019-08-14 Thread santosh . shilimkar
On 8/14/19 11:21 AM, David Miller wrote: From: santosh.shilim...@oracle.com Date: Wed, 14 Aug 2019 11:01:36 -0700 Some of the application software was released before 2009 and ended up using these proc entries from downstream kernel. The newer lib/app using RDS don't use these. Unfortunately lo

Re: [PATCH net-next v2 1/4] RDS: limit the number of times we loop in rds_send_xmit

2019-08-15 Thread santosh . shilimkar
e" if "rds_ib_recv_refill_one" fails. Signed-off-by: Gerd Rausch --- Thought I acked V1 series. Acked-by: Santosh Shilimkar

Re: [PATCH net-next v2 2/4] RDS: don't use GFP_ATOMIC for sk_alloc in rds_create

2019-08-15 Thread santosh . shilimkar
On 8/15/19 7:42 AM, Gerd Rausch wrote: From: Chris Mason Date: Fri, 3 Feb 2012 11:08:51 -0500 Signed-off-by: Chris Mason Signed-off-by: Bang Nguyen Signed-off-by: Gerd Rausch Signed-off-by: Somasundaram Krishnasamy --- Acked-by: Santosh Shilimkar

Re: [PATCH net-next v2 3/4] net/rds: Add a few missing rds_stat_names entries

2019-08-15 Thread santosh . shilimkar
cket recv memory usage") Signed-off-by: Gerd Rausch --- Acked-by: Santosh Shilimkar

Re: [PATCH net-next v2 4/4] rds: check for excessive looping in rds_send_xmit

2019-08-15 Thread santosh . shilimkar
ned-off-by: Gerd Rausch --- Acked-by: Santosh Shilimkar

Re: [PATCH net-next] net/rds: Add RDS6_INFO_SOCKETS and RDS6_INFO_RECV_MESSAGES options

2019-08-15 Thread santosh . shilimkar
-Cheong for getting this one out on list. Acked-by: Santosh Shilimkar

Re: [PATCH net-next] net/rds: Fix info leak in rds6_inc_info_copy()

2019-08-22 Thread santosh . shilimkar
service(tos) infrastructure") Fixes: b7ff8b1036f0 ("rds: Extend RDS API for IPv6 support") Reported-by: 黄ID蝴蝶 Signed-off-by: Dan Carpenter Signed-off-by: Ka-Cheong Poon --- Thanks for getting this out of the list. Acked-by: Santosh Shilimkar

Re: [PATCH net-next] net/rds: Whitelist rdma_cookie and rx_tstamp for usercopy

2019-08-23 Thread santosh . shilimkar
On 8/23/19 7:03 AM, Dag Moxnes wrote: Add the RDMA cookie and RX timestamp to the usercopy whitelist. After the introduction of hardened usercopy whitelisting (https://lwn.net/Articles/727322/), a warning is displayed when the RDMA cookie or RX timestamp is copied to userspace: kernel: WARNING:

Re: [PATCHv2 1/1] net: rds: add service level support in rds-info

2019-08-23 Thread santosh . shilimkar
or the fixup patch. Should be applied to stable as well. Acked-by: Santosh Shilimkar Regards, Santosh

Re: [net-next][PATCH 5/5] rds: rdma: update rdma transport for tos

2019-03-05 Thread Santosh Shilimkar
On 3/5/2019 8:33 AM, Gerd Rausch wrote: Hi, This patchset breaks compatibility... On 04/02/2019 16.04, Santosh Shilimkar wrote: --- a/net/rds/ib_cm.c +++ b/net/rds/ib_cm.c @@ -868,7 +870,7 @@ int rds_ib_cm_initiate_connect(struct rdma_cm_id *cm_id, bool isv6) /* If the peer doesn'

Re: [net-next][PATCH 5/5] rds: rdma: update rdma transport for tos

2019-03-05 Thread Santosh Shilimkar
On 3/5/2019 8:48 AM, Gerd Rausch wrote: Hi Santosh, On 05/03/2019 08.41, Santosh Shilimkar wrote: On 3/5/2019 8:33 AM, Gerd Rausch wrote: If there's a mechanism that ensures compatibility with older (pre-4.1) versions of RDS I am not seeing it. Thats handled as part of the connection r

Re: [PATCH] net/rds: Accept peer connection reject messages due to incompatible version

2019-03-06 Thread Santosh Shilimkar
nn->c_faddr); conn->c_proposed_version = RDS_PROTOCOL_COMPAT_VERSION; @@ -122,7 +122,6 @@ static int rds_rdma_cm_event_handler_cmn(struct rdma_cm_id *cm_id, rdsdebug("Connection rejected: %s\n", rdma_reject_msg(cm_id, event->st

Re: [net-next PATCH v2] net/rds: Accept peer connection reject messages due to incompatible version

2019-03-06 Thread Santosh Shilimkar
bf525ff ("rds: rdma: add consumer reject") Signed-off-by: Gerd Rausch --- net/rds/rdma_transport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Changes in submitted patch v2: * Dropped the "Orabug:" line from the commit-log message (as requested) * Added a "Fixes:" line to the commit-log-message Thanks Gerd for posting an update. The fix looks correct as already mentioned in earlier post. FWIW, Acked-by: Santosh Shilimkar Hi Yanjun, Please provide your tested-by since you mentioned offlist that so far you are unable to reproduce the issue on net-next. Thanks. Regards, Santosh

Re: [net-next PATCH] net/rds: Return proper "tos" value to user-space

2019-03-08 Thread Santosh Shilimkar
On 3/8/2019 2:37 PM, Gerd Rausch wrote: On 07/03/2019 17.37, santosh.shilim...@oracle.com wrote: --- a/net/rds/connection.c +++ b/net/rds/connection.c @@ -736,6 +736,7 @@ static int rds_conn_info_visitor(struct rds_conn_path *cp, void *buffer)   cinfo->next_rx_seq = cp->cp_next_rx_seq;   

Re: [PATCH 1/1] net: rds: exchange of 8K and 1M pool

2019-04-24 Thread Santosh Shilimkar
00 0.00 0.00 0.000.00 0.00 -1.00 100 0.00 0.00 0.000.00 0.00 -1.00 ... " So this exchange between 8K and 1M pool is added back. Fixes: commit 490ea5967b0d ("RDS: IB: move FMR code to its own file") Signed-off-by: Zhu Yanjun --- Acked-by: Santosh Shilimkar

[net-next][PATCH 0/2] rds: handle unsupported rdma request to fs dax memory

2019-04-25 Thread Santosh Shilimkar
orted rdma request to fs dax memory Santosh Shilimkar (1): rds: add sysctl for rds support of On-Demand-Paging net/rds/ib.h| 1 + net/rds/ib_sysctl.c | 8 net/rds/rdma.c | 5 +++-- 3 files changed, 12 insertions(+), 2 deletions(-) -- 1.9.1

[net-next][PATCH 1/2] rds: handle unsupported rdma request to fs dax memory

2019-04-25 Thread Santosh Shilimkar
Signed-off-by: Santosh Shilimkar --- net/rds/rdma.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/rds/rdma.c b/net/rds/rdma.c index 182ab84..5010100 100644 --- a/net/rds/rdma.c +++ b/net/rds/rdma.c @@ -158,8 +158,9 @@ static int rds_pin_pages(unsigned long user_addr

[net-next][PATCH 2/2] rds: add sysctl for rds support of On-Demand-Paging

2019-04-25 Thread Santosh Shilimkar
RDS doesn't support RDMA on memory apertures that require On Demand Paging (ODP), such as FS DAX memory. A sysctl is added to indicate whether RDMA requiring ODP is supported. Reviewed-by: Håkon Bugge Reviewed-tested-by: Zhu Yanjun Signed-off-by: Hans Westgaard Ry Signed-off-by: Sa

[net-next][PATCH v2 1/2] rds: handle unsupported rdma request to fs dax memory

2019-04-29 Thread Santosh Shilimkar
Signed-off-by: Santosh Shilimkar --- net/rds/rdma.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/rds/rdma.c b/net/rds/rdma.c index 182ab84..e0a6b72 100644 --- a/net/rds/rdma.c +++ b/net/rds/rdma.c @@ -158,8 +158,9 @@ static int rds_pin_pages(unsigned long user_addr

[net-next][PATCH v2 0/2] rds: handle unsupported rdma request to fs dax memory

2019-04-29 Thread Santosh Shilimkar
orted rdma request to fs dax memory Santosh Shilimkar (1): rds: add sysctl for rds support of On-Demand-Paging net/rds/ib.h| 1 + net/rds/ib_sysctl.c | 8 net/rds/rdma.c | 5 +++-- 3 files changed, 12 insertions(+), 2 deletions(-) -- 1.9.1

[net-next][PATCH v2 2/2] rds: add sysctl for rds support of On-Demand-Paging

2019-04-29 Thread Santosh Shilimkar
RDS doesn't support RDMA on memory apertures that require On Demand Paging (ODP), such as FS DAX memory. A sysctl is added to indicate whether RDMA requiring ODP is supported. Reviewed-by: Håkon Bugge Reviewed-tested-by: Zhu Yanjun Signed-off-by: Hans Westgaard Ry Signed-off-by: Sa

Re: [net-next][PATCH v2 1/2] rds: handle unsupported rdma request to fs dax memory

2019-05-01 Thread Santosh Shilimkar
On 5/1/2019 12:44 AM, Leon Romanovsky wrote: On Mon, Apr 29, 2019 at 04:37:19PM -0700, Santosh Shilimkar wrote: From: Hans Westgaard Ry RDS doesn't support RDMA on memory apertures that require On Demand Paging (ODP), such as FS DAX memory. User applications can try to use RDS to perform

Re: [net-next][PATCH v2 2/2] rds: add sysctl for rds support of On-Demand-Paging

2019-05-01 Thread Santosh Shilimkar
On 5/1/2019 12:45 AM, Leon Romanovsky wrote: On Mon, Apr 29, 2019 at 04:37:20PM -0700, Santosh Shilimkar wrote: RDS doesn't support RDMA on memory apertures that require On Demand Paging (ODP), such as FS DAX memory. A sysctl is added to indicate whether RDMA requiring ODP is supp

Re: [net-next][PATCH v2 1/2] rds: handle unsupported rdma request to fs dax memory

2019-05-02 Thread Santosh Shilimkar
On 5/1/2019 11:21 PM, Leon Romanovsky wrote: On Wed, May 01, 2019 at 10:54:00AM -0700, Santosh Shilimkar wrote: On 5/1/2019 12:44 AM, Leon Romanovsky wrote: On Mon, Apr 29, 2019 at 04:37:19PM -0700, Santosh Shilimkar wrote: From: Hans Westgaard Ry RDS doesn't support RDMA on m

Re: [net-next][PATCH v2 2/2] rds: add sysctl for rds support of On-Demand-Paging

2019-05-02 Thread Santosh Shilimkar
On 5/1/2019 11:18 PM, Leon Romanovsky wrote: On Wed, May 01, 2019 at 10:54:50AM -0700, Santosh Shilimkar wrote: On 5/1/2019 12:45 AM, Leon Romanovsky wrote: On Mon, Apr 29, 2019 at 04:37:20PM -0700, Santosh Shilimkar wrote: RDS doesn't support RDMA on memory apertures that requi

Re: [net-next][PATCH v2 2/2] rds: add sysctl for rds support of On-Demand-Paging

2019-05-06 Thread Santosh Shilimkar
5/4/2019 11:22 PM, Leon Romanovsky wrote: On Thu, May 02, 2019 at 10:59:58AM -0700, Santosh Shilimkar wrote: On 5/1/2019 11:18 PM, Leon Romanovsky wrote: On Wed, May 01, 2019 at 10:54:50AM -0700, Santosh Shilimkar wrote: On 5/1/2019 12:45 AM, Leon Romanovsky wrote: On Mon, Apr 29, 2019 at

Re: [net-next][PATCH v2 1/2] rds: handle unsupported rdma request to fs dax memory

2019-05-06 Thread Santosh Shilimkar
On 5/4/2019 11:28 PM, Leon Romanovsky wrote: On Thu, May 02, 2019 at 10:52:23AM -0700, Santosh Shilimkar wrote: On 5/1/2019 11:21 PM, Leon Romanovsky wrote: On Wed, May 01, 2019 at 10:54:00AM -0700, Santosh Shilimkar wrote: On 5/1/2019 12:44 AM, Leon Romanovsky wrote: On Mon, Apr 29, 2019

Re: [net-next][PATCH v2 1/2] rds: handle unsupported rdma request to fs dax memory

2019-05-10 Thread Santosh Shilimkar
On 5/10/2019 5:54 AM, Jason Gunthorpe wrote: On Mon, Apr 29, 2019 at 04:37:19PM -0700, Santosh Shilimkar wrote: From: Hans Westgaard Ry RDS doesn't support RDMA on memory apertures that require On Demand Paging (ODP), such as FS DAX memory. User applications can try to use RDS to perform

Re: [net-next][PATCH v2 2/2] rds: add sysctl for rds support of On-Demand-Paging

2019-05-10 Thread Santosh Shilimkar
On 5/10/2019 6:02 AM, Jason Gunthorpe wrote: On Mon, Apr 29, 2019 at 04:37:20PM -0700, Santosh Shilimkar wrote: RDS doesn't support RDMA on memory apertures that require On Demand Paging (ODP), such as FS DAX memory. A sysctl is added to indicate whether RDMA requiring ODP is supp

Re: [net-next][PATCH v2 1/2] rds: handle unsupported rdma request to fs dax memory

2019-05-10 Thread Santosh Shilimkar
On 5/10/2019 12:20 PM, Jason Gunthorpe wrote: On Fri, May 10, 2019 at 11:58:42AM -0700, santosh.shilim...@oracle.com wrote: On 5/10/19 11:07 AM, Jason Gunthorpe wrote: On Fri, May 10, 2019 at 11:02:35AM -0700, santosh.shilim...@oracle.com wrote: [...] Why would you need to detect FS DAX mem

Re: [net-next][PATCH v2 1/2] rds: handle unsupported rdma request to fs dax memory

2019-05-10 Thread Santosh Shilimkar
On 5/10/2019 12:47 PM, Jason Gunthorpe wrote: On Fri, May 10, 2019 at 12:38:31PM -0700, Santosh Shilimkar wrote: On 5/10/2019 12:20 PM, Jason Gunthorpe wrote: On Fri, May 10, 2019 at 11:58:42AM -0700, santosh.shilim...@oracle.com wrote: On 5/10/19 11:07 AM, Jason Gunthorpe wrote: On Fri, May

Re: [PATCH rdma-next 01/15] rds: Don't check return value from destroy CQ

2019-05-20 Thread Santosh Shilimkar
troy_cq(ic->i_send_cq); + ic->i_send_cq = NULL; This was done to ensure, you still don't get ISR delivering the CQEs while we are in shutdown path. Your patch is fine though since you don't change that behavior. Acked-by: Santosh Shilimkar

Re: [PATCH net-next 2/3] rds: Enable RDS IPv6 support

2018-06-25 Thread Santosh Shilimkar
On 6/25/2018 10:50 AM, Sowmini Varadhan wrote: On (06/26/18 01:43), Ka-Cheong Poon wrote: Yes, I think if the socket is bound, it should check the scope_id in msg_name (if not NULL) to make sure that they match. A bound RDS socket can send to multiple peers. But if the bound local address is

Re: [PATCH net-next 2/3] rds: Enable RDS IPv6 support

2018-06-27 Thread Santosh Shilimkar
On 6/27/2018 3:07 AM, Ka-Cheong Poon wrote: On 06/26/2018 09:08 PM, Sowmini Varadhan wrote: On (06/26/18 21:02), Ka-Cheong Poon wrote: [...] I don't expect RDS apps will want to use link local address in the first place.  In fact, most normal network apps don't. This is not true. You

Re: [PATCH v2 net-next 1/3] rds: Changing IP address internal representation to struct in6_addr

2018-07-05 Thread Santosh Shilimkar
On 6/27/2018 3:23 AM, Ka-Cheong Poon wrote: This patch changes the internal representation of an IP address to use struct in6_addr. IPv4 address is stored as an IPv4 mapped address. All the functions which take an IP address as argument are also changed to use struct in6_addr. But RDS socket la

Re: [PATCH v2 net-next 1/3] rds: Changing IP address internal representation to struct in6_addr

2018-07-06 Thread Santosh Shilimkar
Hi Ka-Cheong, On 7/6/2018 8:25 AM, Sowmini Varadhan wrote: On (07/06/18 23:08), Ka-Cheong Poon wrote: As mentioned in a previous mail, it is unclear why the port number is transport specific. Most Internet services use the same port number running over TCP/UDP as shown in the IANA database.

Re: [PATCH v3 net-next 3/3] rds: Extend RDS API for IPv6 support

2018-07-13 Thread Santosh Shilimkar
Hi Dave, On 7/13/2018 2:25 PM, David Miller wrote: From: Ka-Cheong Poon Date: Fri, 13 Jul 2018 04:02:59 -0700 @@ -52,7 +52,7 @@ #define RDS_RECVERR 5 #define RDS_CONG_MONITOR 6 #define RDS_GET_MR_FOR_DEST 7 -#define SO_RDS_TRANSPORT

Re: [PATCH v3 net-next 3/3] rds: Extend RDS API for IPv6 support

2018-07-13 Thread Santosh Shilimkar
On 7/13/2018 4:27 PM, David Miller wrote: From: Santosh Shilimkar Date: Fri, 13 Jul 2018 15:00:59 -0700 Ofcourse any application built using upstream header and using SO_RDS_TRANSPORT will break but since this particular option was added for special case(application wants to upfront select

Re: [PATCH net-next] rds: tcp: must use spin_lock_irq* and not spin_lock_bh with rds_tcp_conn_lock

2018-03-15 Thread Santosh Shilimkar
t;) Signed-off-by: Sowmini Varadhan --- Thanks Sowmini for the WARN_ON() discussion off-list. Acked-by: Santosh Shilimkar

Re: [PATCH net-next] rds: rds_msg_zcopy should return error of null rm->data.op_mmp_znotifier

2018-02-22 Thread Santosh Shilimkar
opy for this case. Reported-by: syzbot+f893ae7bb2f6456df...@syzkaller.appspotmail.com Fixes: 0cebaccef3ac ("rds: zerocopy Tx support.") Signed-off-by: Sowmini Varadhan --- Acked-by: Santosh Shilimkar

Re: [for-next 7/7] IB/mlx5: Implement fragmented completion queue (CQ)

2018-02-22 Thread Santosh Shilimkar
Hi Saeed On 2/21/2018 12:13 PM, Saeed Mahameed wrote: From: Yonatan Cohen The current implementation of create CQ requires contiguous memory, such requirement is problematic once the memory is fragmented or the system is low in memory, it causes for failures in dma_zalloc_coherent(). This pat

Re: [for-next 7/7] IB/mlx5: Implement fragmented completion queue (CQ)

2018-02-25 Thread Santosh Shilimkar
n 2/24/2018 1:40 AM, Majd Dibbiny wrote: On Feb 23, 2018, at 9:13 PM, Saeed Mahameed wrote: On Thu, 2018-02-22 at 16:04 -0800, Santosh Shilimkar wrote: Hi Saeed On 2/21/2018 12:13 PM, Saeed Mahameed wrote: [...] Jason mentioned about this patch to me off-list. We were seeing similar

Re: [PATCH V3 net-next 2/3] rds: deliver zerocopy completion notification with data

2018-02-26 Thread Santosh Shilimkar
27;t seen yet, Dan Carpenter reported skb deref warning on previous version of the patch. Not sure why it wasn't sent on netdev. smatch warnings: net/rds/recv.c:605 rds_recvmsg_zcookie() warn: variable dereferenced before check 'skb' (see line 596) With that addressed, Acked-by: Santosh Shilimkar

Re: [PATCH V3 net-next 2/3] rds: deliver zerocopy completion notification with data

2018-02-26 Thread Santosh Shilimkar
On 2/26/2018 9:11 AM, Sowmini Varadhan wrote: On (02/26/18 09:07), Santosh Shilimkar wrote: Just in case you haven't seen yet, Dan Carpenter reported skb deref warning on previous version of the patch. Not sure why it wasn't sent on netdev. yes I saw it, but that was for the previo

Re: [PATCH v2 net] rds: Incorrect reference counting in TCP socket creation

2018-03-02 Thread Santosh Shilimkar
On 3/2/2018 6:42 AM, David Miller wrote: From: "santosh.shilim...@oracle.com" Date: Thu, 1 Mar 2018 22:22:07 -0800 Versioning comment typically goes below "---" and not part of commit message. I like them to be in the commit message most of the time. Especially for patch series header posti

Re: [PATCH net] RDS: IB: Limit the scope of has_fr/has_fmr variables

2017-09-29 Thread Santosh Shilimkar
hanks !! Acked-by: Santosh Shilimkar

Re: [PATCH net] RDS: IB: Limit the scope of has_fr/has_fmr variables

2017-10-02 Thread Santosh Shilimkar
On 10/1/2017 10:56 PM, David Miller wrote: From: David Miller Date: Sun, 01 Oct 2017 22:54:19 -0700 (PDT) From: Avinash Repaka Date: Fri, 29 Sep 2017 18:13:50 -0700 This patch fixes the scope of has_fr and has_fmr variables as they are needed only in rds_ib_add_one(). Signed-off-by: Avinas

Re: [PATCH net] RDS: IB: Limit the scope of has_fr/has_fmr variables

2017-10-03 Thread Santosh Shilimkar
Hi Dave, On 10/2/2017 1:30 PM, Santosh Shilimkar wrote: On 10/1/2017 10:56 PM, David Miller wrote: From: David Miller [...] Actually, reverted, this breaks the build. net/rds/rdma_transport.c:38:10: fatal error: ib.h: No such file or directory   #include "ib.h" Although I

Re: [PATCH net] RDS: IB: Initialize max_items based on underlying device attributes

2017-10-03 Thread Santosh Shilimkar
insertions(+), 2 deletions(-) This patch is fine but it will be nice if you can collect these changes in series as you are trying to update the FRWR support. Like this patch and other cleanup patch you posted yesterday. With that log fixed, Acked-by: Santosh Shilimkar

Re: [RFC v3 net-next 4/5] rds: invoke socket sg filter attached to rds socket

2018-08-20 Thread Santosh Shilimkar
-by: Tushar Dave Reviewed-by: Sowmini Varadhan --- Looks good Tushar !! Acked-by: Santosh Shilimkar

Re: [PATCH] rds: tcp: remove duplicated include from tcp.c

2018-08-21 Thread Santosh Shilimkar
On 8/21/2018 7:05 AM, Yue Haibing wrote: Remove duplicated include. Signed-off-by: Yue Haibing --- Looks fine. Acked-by : Santosh Shilimkar

Re: [Patch net] rds: mark bound socket with SOCK_RCU_FREE

2018-09-10 Thread Santosh Shilimkar
ugged so am fine to go ahead with this change. Thanks for the patch. FWIW, Acked-by: Santosh Shilimkar

Re: [Patch net] rds: mark bound socket with SOCK_RCU_FREE

2018-09-10 Thread Santosh Shilimkar
On 9/10/2018 5:16 PM, Cong Wang wrote: On Mon, Sep 10, 2018 at 5:04 PM Sowmini Varadhan wrote: On (09/10/18 16:51), Cong Wang wrote: __rds_create_bind_key(key, addr, port, scope_id); - rs = rhashtable_lookup_fast(&bind_hash_table, key, ht_parms); + rcu_read_lock(); +

Re: [Patch net] rds: mark bound socket with SOCK_RCU_FREE

2018-09-10 Thread Santosh Shilimkar
On 9/10/2018 5:45 PM, Cong Wang wrote: On Mon, Sep 10, 2018 at 5:26 PM Santosh Shilimkar wrote: Would you mind posting an updated patch please with call_rcu and above extended RCU grace period with rcu_read_lock. Thanks !! If you prefer to fix _two_ problems in one patch, sure. For the

Re: [Patch net v2] rds: fix two RCU related problems

2018-09-10 Thread Santosh Shilimkar
(), so we need to extend RCU read lock protection in rds_find_bound() to close this race condition. Reported-and-tested-by: syzbot+8967084bcac563795...@syzkaller.appspotmail.com Reported-by: syzbot+93a5839deb3555374...@syzkaller.appspotmail.com Cc: Sowmini Varadhan Cc: Santosh Shilimkar Cc: rds-de

  1   2   3   4   5   >