Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5546141ybl; Tue, 27 Aug 2019 06:22:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIElPcjPliA7IUVUrjnCeJwCAyhUSxR/Dp9zGtj9Vt+DrXeC0YwGuiygm4LBipsHYv5klT X-Received: by 2002:a65:50c5:: with SMTP id s5mr21254619pgp.368.1566912158938; Tue, 27 Aug 2019 06:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566912158; cv=none; d=google.com; s=arc-20160816; b=dfRF1ouMTRKAYzYyz7EX4K8HcVk7K6QCXhm+pShEOdhZ0+cYfC73qR1MbtfKeWHj2a 7Mbud5eNXyNmtB8oYPr5LwXt1ZS2KOCCV0BNtMMCuDt+pJm/d8fuFASTpwMAfZO/pG7t 5IGmU8ZlAP3fvh9rkqL7djh4CQITF/Q/Gy82PwtHXbax2h/6rsadAMr/UtAm0f9Tf+ey XVWalPsEGrwB5TzaT0d2aUomGLj3kdx+M9cQ1zeKK5HcHP0+SoSnRN9lLtOLLNKi5NxM tG28ytNRuPhEHEGyF+2aBTeSXUr9hIub24r3ujbFqOQ+/f7cdEUTsWz4OFxn5VGBDoHn He7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=TM6cZH4n9vG/rBT7HjNMakmudoFNGwsVoiPqwwEV6C4=; b=A6A1qtvzF/IWI80zNwUbmQPx5wrDjungpqJiQ7wUQcfKYVPkzgc5nT7FmH6scGD90k EsAOd5oOo3iMSAev9IuJ5+35y93woQZsGFhonMEbj4RPPNwFHPJs5ZYnCQt4DKcRVf4b FDOK3JcQeJqACEv9nPVrs7rdGf3gF8HHolSVR3Sl/u81cB0Pjv4eGMjfPYvNZx1qEToD ypFou0H34O+UByDDApFViT06jHqieTJdmuBmj8cFsTsKvxJnPE4UHZ8Yn2qUke4IIvk1 LWJ7pGIks8DgpjS8lM/nrRv/sUOXrGHSQYbEKKShkCgCtQknuaePZKBhUKuaYsuc0AzX s41g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4si11716993pgq.375.2019.08.27.06.22.23; Tue, 27 Aug 2019 06:22:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729864AbfH0NUF (ORCPT + 99 others); Tue, 27 Aug 2019 09:20:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37518 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726257AbfH0NUE (ORCPT ); Tue, 27 Aug 2019 09:20:04 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5C8D58AB25B; Tue, 27 Aug 2019 13:20:04 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4ADDE194B9; Tue, 27 Aug 2019 13:20:04 +0000 (UTC) Received: from zmail17.collab.prod.int.phx2.redhat.com (zmail17.collab.prod.int.phx2.redhat.com [10.5.83.19]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2D3D624F30; Tue, 27 Aug 2019 13:20:04 +0000 (UTC) Date: Tue, 27 Aug 2019 09:20:03 -0400 (EDT) From: Jan Stancek To: Trond Myklebust , naresh kamboju Cc: the hoang0709 , linux-next@vger.kernel.org, ltp@lists.linux.it, linux-kernel@vger.kernel.org, chrubis@suse.cz, alexey kodanev Message-ID: <241383129.8399897.1566912003912.JavaMail.zimbra@redhat.com> In-Reply-To: <294428f05e4dba1a6b10b8744cfa5da0637f84a4.camel@hammerspace.com> References: <203971593.8175020.1566830285708.JavaMail.zimbra@redhat.com> <2039173876.8300255.1566861172742.JavaMail.zimbra@redhat.com> <566e862d9bfaf88cdde6d66f0f59033fe6225a22.camel@hammerspace.com> <866876796.8349197.1566901536625.JavaMail.zimbra@redhat.com> <294428f05e4dba1a6b10b8744cfa5da0637f84a4.camel@hammerspace.com> Subject: Re: Linux-next-20190823: x86_64/i386: prot_hsymlinks.c:325: Failed to run cmd: useradd hsym MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.40.204.166, 10.4.195.29] Thread-Topic: Linux-next-20190823: x86_64/i386: prot_hsymlinks.c:325: Failed to run cmd: useradd hsym Thread-Index: YFeV1UC3LeIsRdovt5+kMdO7I/BycvuMo5UAj4lK/k3wd0xbAPZWZFoxiapkYwBjzrsPWQ== X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.68]); Tue, 27 Aug 2019 13:20:04 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- Original Message ----- > On Tue, 2019-08-27 at 06:25 -0400, Jan Stancek wrote: > > That theory is probably not correct for this case, since EIO I see > > appears > > to originate from write and nfs_writeback_result(). This function > > also > > produces message we saw in logs from Naresh. > > > > I can't find where/how is resp->count updated on WRITE reply in > > NFSv2. > > Issue also goes away with patch below, though I can't speak about its > > correctness: > > > > NFS version Type Test Return code > > nfsvers=2 tcp -b:base 0 > > nfsvers=2 tcp -g:general 0 > > nfsvers=2 tcp -s:special 0 > > nfsvers=2 tcp -l:lock 0 > > Total time: 141 > > > > diff --git a/fs/nfs/nfs2xdr.c b/fs/nfs/nfs2xdr.c > > index cbc17a203248..4913c6da270b 100644 > > --- a/fs/nfs/nfs2xdr.c > > +++ b/fs/nfs/nfs2xdr.c > > @@ -897,6 +897,16 @@ static int nfs2_xdr_dec_writeres(struct rpc_rqst > > *req, struct xdr_stream *xdr, > > void *data) > > { > > struct nfs_pgio_res *result = data; > > + struct rpc_task *rq_task = req->rq_task; > > + > > + if (rq_task) { > > + struct nfs_pgio_args *args = rq_task- > > >tk_msg.rpc_argp; > > + > > + if (args) { > > + result->count = args->count; > > + } > > + } > > > > /* All NFSv2 writes are "file sync" writes */ > > result->verf->committed = NFS_FILE_SYNC; > > Thanks! I've moved the above to nfs_write_done() so that we do it only > on success (see > http://git.linux-nfs.org/?p=trondmy/linux-nfs.git;a=commitdiff;h=3ba5688da709dd0f7d917029c206bc1848a6ae74 > ) Thanks, retested with 3ba5688da, all PASS: NFS version Type Test Return code nfsvers=2 tcp -b:base 0 nfsvers=2 tcp -g:general 0 nfsvers=2 tcp -s:special 0 nfsvers=2 tcp -l:lock 0 NFS version Type Test Return code nfsvers=3 tcp -b:base 0 nfsvers=3 tcp -g:general 0 nfsvers=3 tcp -s:special 0 nfsvers=3 tcp -l:lock 0 nfsvers=3 tcp6 -b:base 0 nfsvers=3 tcp6 -g:general 0 nfsvers=3 tcp6 -s:special 0 nfsvers=3 tcp6 -l:lock 0 NFS version Type Test Return code nfsvers=4 tcp -b:base 0 nfsvers=4 tcp -g:general 0 nfsvers=4 tcp -s:special 0 nfsvers=4 tcp -l:lock 0 nfsvers=4 tcp6 -b:base 0 nfsvers=4 tcp6 -g:general 0 nfsvers=4 tcp6 -s:special 0 nfsvers=4 tcp6 -l:lock 0 Feel free to add also: Reported-by: Naresh Kamboju Tested-by: Jan Stancek