From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f193.google.com ([209.85.215.193]:40431 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732113AbeITDLa (ORCPT ); Wed, 19 Sep 2018 23:11:30 -0400 Received: by mail-pg1-f193.google.com with SMTP id l63-v6so3341327pga.7 for ; Wed, 19 Sep 2018 14:31:41 -0700 (PDT) Date: Wed, 19 Sep 2018 15:31:40 -0600 From: Jason Gunthorpe To: Bart Van Assche Cc: Doug Ledford , linux-rdma@vger.kernel.org, Max Gurtovoy , Laurence Oberman , stable@vger.kernel.org Subject: Re: [PATCH] IB/srp: Avoid that sg_reset -d ${srp_device} triggers an infinite loop Message-ID: <20180919213140.GA18096@ziepe.ca> References: <20180918011005.8275-1-bvanassche@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180918011005.8275-1-bvanassche@acm.org> Sender: stable-owner@vger.kernel.org List-ID: On Mon, Sep 17, 2018 at 06:10:05PM -0700, Bart Van Assche wrote: > Use different loop variables for the inner and outer loop. This avoids > that an infinite loop occurs if there are more RDMA channels than > target->req_ring_size. > > Fixes: d92c0da71a35 ("IB/srp: Add multichannel support") > Signed-off-by: Bart Van Assche > Cc: Max Gurtovoy > Cc: Laurence Oberman > Cc: > --- > drivers/infiniband/ulp/srp/ib_srp.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Applied to for-rc, thanks Jason