Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2058257pja; Thu, 9 Apr 2020 13:17:36 -0700 (PDT) X-Google-Smtp-Source: APiQypLdcF8Xstgm3xOYgSrXEQWxwb1EP+/yWTUPCXTXmcX8AudfXqnf9HIIax5pGSj740CNH+2F X-Received: by 2002:ac8:8d0:: with SMTP id y16mr1275513qth.340.1586463455916; Thu, 09 Apr 2020 13:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586463455; cv=none; d=google.com; s=arc-20160816; b=hlEYOdN90uqF9AWzQWWm8+CKE0gXvm13a+7u5L2vUfq850M41dp7FB0z3T8vcc810p j18ru9yxyr4Bibl0yn1zCUOxk5bKzPsNT603cUmpcBCvOjt7e4Ks2WQeD4X5qu9zhExS a+9Z0h2CmA78rBTx/ZmiY+TJZJpTVpC0bO7QhOYAojnhNKWgG+sJD7diy70zl1ExKF6y m0iqr0yZUxxqUDADrI/JDKRveeg8YcDz8zn1/NSycji2dGryn0d9fjqncQ0daPcvkhrV ePA0xVEWjT5KGW8evn/Xpyt5TdmcjHUwNg8NY34z1xRGkqDsviNfqn2exqlIin822+6f nNlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=VVq3itUlAiBm4NAYXG61zLXuwOWBuRo1pSKnKCYUgJU=; b=EwfEibV0RemxvWZPkBiW+s7GeyK3ky03DHvGEHwL8Q9CdLLr2/kIo52q5y2bMYv2fe FjIdqd5nVXPImD4hGpG/cFGWrbRL2Xr+amVqw10bTN4G6cE8xHbduimANBFA1+ZV8nIn g1+196fl2OyUWWT+9vO5xwjaGQwPZrzrVgXSXTA1ewidCfVrx39T5UKbhjR5w6iJ3His EdErtwflcVIIqOCnlbxzgg2OFofF7oohJqQtb8pQ4E4ZBsAyNm1GkHcrEhDFdxfWYdrT DWeHxWc+bW6waDTfeVnMVG9p93YIfhn+aSwgLr8iuWJd0HKWeEdBlIWSYMmkcFhnrdo/ aecA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=c2KnbvOi; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18si5980223qtn.299.2020.04.09.13.16.59; Thu, 09 Apr 2020 13:17:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=c2KnbvOi; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726810AbgDIUPf (ORCPT + 99 others); Thu, 9 Apr 2020 16:15:35 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46870 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726796AbgDIUPf (ORCPT ); Thu, 9 Apr 2020 16:15:35 -0400 Received: by mail-wr1-f68.google.com with SMTP id f13so6888141wrm.13 for ; Thu, 09 Apr 2020 13:15:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VVq3itUlAiBm4NAYXG61zLXuwOWBuRo1pSKnKCYUgJU=; b=c2KnbvOiIP+hHB3lvLihVHGPPDgbY8Tsq/8lUY6Pf+A5pY7BpaRDyIsHHD1G03ivWS hzjzH8F9kScJ1JRywqFbXwTT680cXJRyPbcptMnF6xRnwK7x9qyn+pZefgEcFZd9twvm wUch3fpbwTH2XYb5EuanihBOTg/M1X+Ci8MMnB4ujJyHdA9iLShdwULbwMKvwqjPFkGt q6sbi4Yzg/vCsyrIRe+iPXfUCTPbDrV6pSncziSe7v+4LUf92wXA7IXIgfrcVex/ooXi 5mBo6kCojQGIiY7h9B1fX8wzUXA/7rlRW5eqsUT5lsFWuvVsj6RUcxeRYsOqopGv8KUv 6WUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VVq3itUlAiBm4NAYXG61zLXuwOWBuRo1pSKnKCYUgJU=; b=hjIVK3cGYVJgtrFq+wOzYgXy/agOMJTH9EPJiGmpDRSvsnxunhOTqGN1TPEJ2VGXyK I5Gq4V8uAYX40YWjLxR4cCeuHC+kRu7NY637nNl83ICltSMXxkjNO/eiYonmlIs/ZC79 34CfIdKxvQpGm7z1E5RZHpSGOKKYCgVST9zBwvwVUf0P0QTGBpRqEUt7X69mXnXSiFye GEHwmBJUDHjNracKrFu6jIS8EQkdFH3jmm6dYEz+3zBmR31Crm3gPdWuScYkkTCZb01q B3Atg2Gea2RO388ydUe6vzNH5aRl8ss1NPMf/YANmWJcsybMZg5hzpRZA2AjGZHPHtQ/ +NDA== X-Gm-Message-State: AGi0PuaJv21+Jv6gupixASvZVUrvy05+p5q41tvUqPvFi0UYBfVf+zaV CaWJCmnBVAUVSH0SPEO+aOazCKxfvVMDi/JZ+/+9Qw== X-Received: by 2002:adf:f5c5:: with SMTP id k5mr933362wrp.403.1586463332128; Thu, 09 Apr 2020 13:15:32 -0700 (PDT) MIME-Version: 1.0 References: <8be4b4e465f01f66f96c2308c833cbf95546e2cb.camel@hammerspace.com> In-Reply-To: <8be4b4e465f01f66f96c2308c833cbf95546e2cb.camel@hammerspace.com> From: Olga Kornievskaia Date: Thu, 9 Apr 2020 16:15:20 -0400 Message-ID: Subject: Re: VFS rename hang To: Trond Myklebust Cc: "linux-nfs@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Trond, On Thu, Apr 9, 2020 at 3:16 PM Trond Myklebust wrote: > > Hi Olga, > > On Thu, 2020-04-09 at 13:14 -0400, Olga Kornievskaia wrote: > > Hi folks, > > > > This is a rename on an NFS mount but the stack trace is not in NFS, > > but I'm curious if any body ran into this. Thanks. > > > > Apr 7 13:34:53 scspr1865142002 kernel: Not tainted 5.5.7 #1 > > Apr 7 13:34:53 scspr1865142002 kernel: "echo 0 > > > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > > Apr 7 13:34:53 scspr1865142002 kernel: dt D 0 24788 > > 24323 0x00000080 > > Apr 7 13:34:53 scspr1865142002 kernel: Call Trace: > > Apr 7 13:34:53 scspr1865142002 kernel: ? __schedule+0x2ca/0x6e0 > > Apr 7 13:34:53 scspr1865142002 kernel: schedule+0x4a/0xb0 > > Apr 7 13:34:53 scspr1865142002 kernel: > > schedule_preempt_disabled+0xa/0x10 > > Apr 7 13:34:53 scspr1865142002 kernel: > > __mutex_lock.isra.11+0x233/0x4e0 > > Apr 7 13:34:53 scspr1865142002 kernel: ? > > strncpy_from_user+0x47/0x160 > > Apr 7 13:34:53 scspr1865142002 kernel: lock_rename+0x28/0xd0 > > Apr 7 13:34:53 scspr1865142002 kernel: do_renameat2+0x1e7/0x4f0 > > Apr 7 13:34:53 scspr1865142002 kernel: __x64_sys_rename+0x1c/0x20 > > Apr 7 13:34:53 scspr1865142002 kernel: do_syscall_64+0x5b/0x200 > > Apr 7 13:34:53 scspr1865142002 kernel: > > entry_SYSCALL_64_after_hwframe+0x44/0xa9 > > Apr 7 13:34:53 scspr1865142002 kernel: RIP: 0033:0x7f747a10ac77 > > Apr 7 13:34:53 scspr1865142002 kernel: Code: Bad RIP value. > > Apr 7 13:34:53 scspr1865142002 kernel: RSP: 002b:00007f7479f92948 > > EFLAGS: 00000206 ORIG_RAX: 0000000000000052 > > Apr 7 13:34:53 scspr1865142002 kernel: RAX: ffffffffffffffda RBX: > > 00000000023604c0 RCX: 00007f747a10ac77 > > Apr 7 13:34:53 scspr1865142002 kernel: RDX: 0000000000000000 RSI: > > 00007f7479f94a80 RDI: 00007f7479f96b80 > > Apr 7 13:34:53 scspr1865142002 kernel: RBP: 0000000000000005 R08: > > 00007f7479f9d700 R09: 00007f7479f9d700 > > Apr 7 13:34:53 scspr1865142002 kernel: R10: 645f72656464616c R11: > > 0000000000000206 R12: 0000000000000001 > > Apr 7 13:34:53 scspr1865142002 kernel: R13: 00007f7479f98c80 R14: > > 00007f7479f9ad80 R15: 00007f7479f94a80 > > It looks like the rename locking (i.e. taking the inode mutex on the > source and target directory) is hung. That likely indicates that > something else is leaking or holding onto one or more of the directory > mutexes. Is some other thread/process perhaps also hung on the same > directory? Thanks for the reply. I see several hung application processes with the same stack. Question now is there some NFS rename that's maybe hanging because server isn't replying (but I would think in that case I'd get a stack with a hung somewhere in NFS and there isn't one). This is also with nconnect so not sure if that has any effect on this. > > Cheers > Trond > -- > Trond Myklebust > Linux NFS client maintainer, Hammerspace > trond.myklebust@hammerspace.com > >