Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp208048ybt; Tue, 7 Jul 2020 20:44:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoFNP1z2nLD5Syg6gCmdnEqDZ8toXUaLXdg41+gYK/66oasJxlehlAuBm9NiouZ+C5oAfc X-Received: by 2002:aa7:c80f:: with SMTP id a15mr63088429edt.299.1594179849308; Tue, 07 Jul 2020 20:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594179849; cv=none; d=google.com; s=arc-20160816; b=s83P1rJdcvt241myKwYxGwPGRW73gQRvrtJH3PpMXosi11Fo4RnuT17du/LhzvSTlP hl5FH3MIvohXGDrprkUoI22OfLK+GNX4x2dVv6TcaN8uqkCdhJd9JvDcpAfoejBaAsjX Wq3Kosi6kpZ7q9+hHyq/Cjg0JvRPQvv2E0YimYiC/p4UcNCsRQnZEQjDG8KG7OsXzgOb Y1ylFW1N1Uo08UOE/ShGP4xBBl/0YPQydxSi4ORg7JvILG9YANmwnA9dj5RHh1+3wnb+ ftehoxZw2ADlCEXeaFA43mO2/geUF0QvRCEEhYbBhaJiLLFRoUjOhUevF8rNyecKD3ER BHTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=8ZDIowrHeyDweqp4eZrHQis7jyj3wg1ezRaZb5iQwUw=; b=ADOffTRmViUQd0Tukzyxp0rgZQsOnAAXV4YZ6K2tN5Ln4FoXsOz+Dh9tfZpav8Th9z 73qG0KTIgIsqEa+D5l4MsYfIc94OJQ3KVNiuP3OS7r/Kh11IyH2Q97V4Bv+QkSMcq+k4 EqN4il8lSwqsmYB60ODfsGUK8V19XTjI46WTBDcyxH4sT5sM/glX42pH+EHhs0YO8mFA 7AYuDvMrtDxqMGVL5G2nHMZZDV9/CojTUEX4jk23UVqbgkCd6K7bdJCFh05sAM6djfGe sWs1BrLyLC9S4iG1TbnCDOc7/xrt5RXVo7lmRCEU4A1oAOjtzEBxiQK5ES5QCzgv5N+H 3UBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do16si19784950ejc.166.2020.07.07.20.43.46; Tue, 07 Jul 2020 20:44:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729532AbgGHDnK (ORCPT + 99 others); Tue, 7 Jul 2020 23:43:10 -0400 Received: from smtp25.cstnet.cn ([159.226.251.25]:36990 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728369AbgGHDnK (ORCPT ); Tue, 7 Jul 2020 23:43:10 -0400 Received: from localhost (unknown [159.226.5.99]) by APP-05 (Coremail) with SMTP id zQCowAC3meq9QAVfJfj4Aw--.9521S2; Wed, 08 Jul 2020 11:42:53 +0800 (CST) From: Xu Wang To: santosh.shilimkar@oracle.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com Cc: linux-kernel@vger.kernel.org, Xu Wang Subject: [PATCH] rds: send: Replace sg++ with sg = sg_next(sg) Date: Wed, 8 Jul 2020 03:42:52 +0000 Message-Id: <20200708034252.17408-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: zQCowAC3meq9QAVfJfj4Aw--.9521S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYF7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87 Iv6xkF7I0E14v26F4UJVW0owAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAK zVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUAVWUtwAv7VC2z280aVAFwI0_Gr1j6F4UJw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAG YxC7MxkIecxEwVAFwVW8GwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8Jw C20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAF wI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjx v20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rWUJVWrZr1UMIIF0xvE x4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnU UI43ZEXa7VUj_Oz3UUUUU== X-Originating-IP: [159.226.5.99] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiBwULA102Yl5m1gAAst Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace sg++ with sg = sg_next(sg). Signed-off-by: Xu Wang --- net/rds/send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rds/send.c b/net/rds/send.c index 68e2bdb08fd0..57d03a6753de 100644 --- a/net/rds/send.c +++ b/net/rds/send.c @@ -387,7 +387,7 @@ int rds_send_xmit(struct rds_conn_path *cp) ret -= tmp; if (cp->cp_xmit_data_off == sg->length) { cp->cp_xmit_data_off = 0; - sg++; + sg = sg_next(sg); cp->cp_xmit_sg++; BUG_ON(ret != 0 && cp->cp_xmit_sg == rm->data.op_nents); -- 2.17.1