From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B250C47404 for ; Thu, 12 Sep 2019 13:14:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5D4942084D for ; Thu, 12 Sep 2019 13:14:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731788AbfILNN7 (ORCPT ); Thu, 12 Sep 2019 09:13:59 -0400 Received: from fieldses.org ([173.255.197.46]:34772 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731283AbfILNN7 (ORCPT ); Thu, 12 Sep 2019 09:13:59 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 4E3DB1C8C; Thu, 12 Sep 2019 09:13:59 -0400 (EDT) Date: Thu, 12 Sep 2019 09:13:59 -0400 From: "J. Bruce Fields" To: Benjamin Coddington Cc: Trond Myklebust , chuck.lever@oracle.com, tibbs@math.uh.edu, linux@stwm.de, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, km@cm4all.com Subject: Re: Regression in 5.1.20: Reading long directory fails Message-ID: <20190912131359.GB31879@fieldses.org> References: <0089DF80-3A1C-4F0B-A200-28FF7CFD0C65@oracle.com> <429B2B1F-FB55-46C5-8BC5-7644CE9A5894@redhat.com> <8D7EFCEB-4AE6-4963-B66F-4A8EEA5EA42A@redhat.com> <57185A91-0AC8-4805-B6CE-67D629F814C2@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57185A91-0AC8-4805-B6CE-67D629F814C2@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Sep 12, 2019 at 09:08:51AM -0400, Benjamin Coddington wrote: > > On 12 Sep 2019, at 8:53, Trond Myklebust wrote: > > Let's please just scrap this function and rewrite it as a generic > > function for reading the MIC. It clearly is not a generic function for > > reading arbitrary netobjs, and modifications like the above just make > > the misnomer painfully obvious. > > > > Let's rewrite it as xdr_buf_read_mic() so that we can simplify it where > > possible. > > Ok. I want to assume the mic will not land in the head, but I am not sure.. > Is there a scenario where the mic might land in the head, or is that bit of > the current function left over from other uses? Any reply that doesn't have page data? A reply that ends up shorter than expected due to failure of an early op in the compound? (Unless I'm missing something. I haven't looked at this code in a while. Though it was problem me that wrote it originally--apologies for that....) --b.