From owner-freebsd-current@freebsd.org Tue Sep 17 15:29:10 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7F51A127034 for ; Tue, 17 Sep 2019 15:29:10 +0000 (UTC) (envelope-from ish@amail.plala.or.jp) Received: from msc13.plala.or.jp (msc13.plala.or.jp [60.36.166.23]) by mx1.freebsd.org (Postfix) with ESMTP id 46Xn8M3q0Xz48JP for ; Tue, 17 Sep 2019 15:29:06 +0000 (UTC) (envelope-from ish@amail.plala.or.jp) Received: from localhost ([2400:4050:9320:7a00::8]) by msc13.plala.or.jp with ESMTP id <20190917152901.BEOB18269.msc13.plala.or.jp@localhost> for ; Wed, 18 Sep 2019 00:29:01 +0900 Date: Wed, 18 Sep 2019 00:28:53 +0900 (JST) Message-Id: <20190918.002853.935521658808754450.ish@amail.plala.or.jp> To: freebsd-current@freebsd.org Subject: Re: panic: sleeping thread on r352386 From: Masachika ISHIZUKA In-Reply-To: <20190917122430.GZ2559@kib.kiev.ua> References: <20190917080658.GW2559@kib.kiev.ua> <20190917101826.GJ97181@server.rulingia.com> <20190917122430.GZ2559@kib.kiev.ua> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-VirusScan: Outbound; mvir-ac13; Wed, 18 Sep 2019 00:29:01 +0900 X-Rspamd-Queue-Id: 46Xn8M3q0Xz48JP X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of ish@amail.plala.or.jp designates 60.36.166.23 as permitted sender) smtp.mailfrom=ish@amail.plala.or.jp X-Spamd-Result: default: False [0.54 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.35)[-0.350,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:60.36.166.0/24]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.75)[-0.751,0]; DMARC_NA(0.00)[plala.or.jp]; MV_CASE(0.50)[]; MID_CONTAINS_FROM(1.00)[]; IP_SCORE(0.44)[ip: (-0.98), ipnet: 60.32.0.0/12(2.99), asn: 4713(0.23), country: JP(-0.02)]; RCVD_NO_TLS_LAST(0.10)[]; RCVD_IN_DNSWL_LOW(-0.10)[23.166.36.60.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:4713, ipnet:60.32.0.0/12, country:JP]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Sep 2019 15:29:10 -0000 >> >Try the following change, which more accurately tries to avoid >> >vnode_pager_setsize(). The real cause requires much more extensive >> >changes. >> > >> >diff --git a/sys/fs/nfsclient/nfs_clport.c b/sys/fs/nfsclient/nfs_clport.c >> >index 63ea4736707..16dc7745c77 100644 >> >--- a/sys/fs/nfsclient/nfs_clport.c >> >+++ b/sys/fs/nfsclient/nfs_clport.c >> ... >> >> With that patch, I'm back to "Sleeping thread (...) owns a non-sleepable >> lock" panics. > > Try this. > > diff --git a/sys/fs/nfsclient/nfs_clport.c b/sys/fs/nfsclient/nfs_clport.c > index 63ea4736707..a23b4ba4efa 100644 Thank you for new patch. It seems that this patch works fine. I patched to r352432(src) and 'make buildkernel && make installkernel && reboot' on r351728(kernel)/r352432(user land). After that, 'make -j4 buildworld && make -j4 buildkernel' on r352432M(patched kernel)/ r352432(user land) with the nfs file system was done successfully. -- Masachika ISHIZUKA