Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp439622rdb; Fri, 17 Nov 2023 03:21:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxqzMOphtdA8SZc147k349MMPn1rT6I+ZTz5ltpuhshldZVzE+gHSn1DnUUP3FrJ3joMez X-Received: by 2002:a05:6a21:71c1:b0:187:7f06:da3d with SMTP id ay1-20020a056a2171c100b001877f06da3dmr8362919pzc.21.1700220104054; Fri, 17 Nov 2023 03:21:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700220104; cv=none; d=google.com; s=arc-20160816; b=qX0KoOpnuCl3clMV6BEVHA3gn6ALS9VXtu+2GPQvgJQI/KVGVJ3IRtIaUEzzgelN2h Nme0Sk4fvc5iXJ+fGGUTxZu/y1TMgaSZ7dE0qHaxwkPbqEIHhX7TJZnXeY2KuMDYw0MI p9Sox5X1aa3W6IJlsIJpXZ3BRvizs+u+uWQcQfEWzcxoSgtnL47jCXLkNiZYicxF9iwL FKw5X0qVd+Q5T9yuzWsaBTcuVG1kXF4W8NDv+lplq3WUxwjTk5WNcWYBdDi/abo0MEYJ Hwy1S5MrgDd9QQw8BhV887kTDK/9e2KkexlA90lF2iWrWjmm9/CvPJLWBiAKEkZkgbDT cPTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=86WEu9/c4eNc+CvB1Lun/RnipDZLfsoBDIai2FaBSOg=; fh=5Y/VEGQG9Y1SAR8lTaXGVm/Fbmx450lHl0GjQYD7rYI=; b=iiQESdxkr57f9p32h8XTgzTadPFB4SIyS8WyGaapkg8q57gPRZGgK4OflmcFImLN+w k50YCPSfg3/2989LptL3vCy4v7b3QK7L0ZPuz+7x2ZpTtFk9rWy3aVJDQ4iyTZ+i8yWu jI+qU29Uk5ar/MeRSRT0Jj/hGU/D8uQ2BENJrtl8B0N3eDsKK2+1zlZEO+KSmj2QrZil Ww/hwZ3sWLxGqMgvt2c3m26gbpyBNKY86fxLhegGbfSGnm9cEatWzBTBeCT2NeiTWoa8 s4++WBznSlRbJKvKt+FLjOArWRERDYKSodFu8SDdYkzkBYkKWTVygrJKybJLJGqeGO4R Eo/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PL2GP8pt; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id cm11-20020a056a020a0b00b005be30c35ef7si1823789pgb.162.2023.11.17.03.21.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 03:21:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PL2GP8pt; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8EB7C8303A13; Fri, 17 Nov 2023 03:21:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345862AbjKQLVO (ORCPT + 99 others); Fri, 17 Nov 2023 06:21:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345930AbjKQLVN (ORCPT ); Fri, 17 Nov 2023 06:21:13 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA155D5C for ; Fri, 17 Nov 2023 03:21:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700220067; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=86WEu9/c4eNc+CvB1Lun/RnipDZLfsoBDIai2FaBSOg=; b=PL2GP8ptPtjU3jrDPbx39zE6fwtkioR/wn/7x5tWqc17kjZWVaNyhjGF6amLe8JJ4y5daY ztI6vKOaQBfJBHlbJCxIcy4UWMHeGqbLeSg9TRYy/NUg1cJalU5N2AIgO/u+dIkM7k0s24 947oo4JXS0KwQaeoAXurFHmpHtpNMPo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-183-rLs_IBN0P3WbY54BOJgmUw-1; Fri, 17 Nov 2023 06:21:05 -0500 X-MC-Unique: rLs_IBN0P3WbY54BOJgmUw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5026D8007B3; Fri, 17 Nov 2023 11:21:05 +0000 (UTC) Received: from [100.85.132.103] (unknown [10.22.48.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2B84A2026D4C; Fri, 17 Nov 2023 11:21:03 +0000 (UTC) From: Benjamin Coddington To: Anna Schumaker Cc: trond.myklebust@hammerspace.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH 2/2] NFS: drop unused nfs_direct_req bytes_left Date: Fri, 17 Nov 2023 06:21:01 -0500 Message-ID: <9AF594B0-9477-4EB9-81F5-85A5F9BBAF87@redhat.com> In-Reply-To: References: <21a1f2a6155398965f79ed64f0bd23bf38a50367.1700083991.git.bcodding@redhat.com> <952eea7e97246870f83e7a4592e9338007dfe625.1700083991.git.bcodding@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 17 Nov 2023 03:21:15 -0800 (PST) On 16 Nov 2023, at 17:11, Anna Schumaker wrote: > On Thu, Nov 16, 2023 at 5:03 PM Benjamin Coddington wrote: >> >> On 16 Nov 2023, at 16:44, Anna Schumaker wrote: >> >>> Hi Ben, >>> >>> On Wed, Nov 15, 2023 at 4:34 PM Benjamin Coddington wrote: >>>> >>>> Now that we're calculating how large a remaining IO should be based >>>> on the current request's offset, we no longer need to track bytes_left on >>>> each struct nfs_direct_req. Drop the field, and clean up the direct >>>> request tracepoints. >>> >>> I've been having problems with xfstests generic/465 on all NFS >>> versions after applying this patch. Looking at wireshark, the client >>> appears to be resending the same reads over and over again. Have you >>> seen anything like this in your testing? >> >> I have generic/465 failing before and after these two patches on pNFS SCSI.. >> but at least it completes. If I run it without pNFS I can see the same >> thing.. it just sends the same reads over and over. I'll figure out why. > > Thanks! I have it failing normally as well, so that's expected. It's > the hanging forever that's not :) The direct read is returning 0 when there's data on the device. Oh, the problem is probably that patch drops the update of dreq->max_count, which I overlooked because of the double assignment. Shame on me. Ben