From owner-freebsd-current@FreeBSD.ORG Thu Aug 4 10:09:35 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54EB6106564A for ; Thu, 4 Aug 2011 10:09:35 +0000 (UTC) (envelope-from okuno.kohji@jp.panasonic.com) Received: from smtp.mei.co.jp (smtp.mei.co.jp [133.183.100.20]) by mx1.freebsd.org (Postfix) with ESMTP id EE1008FC1C for ; Thu, 4 Aug 2011 10:09:34 +0000 (UTC) Received: from mail-gw.jp.panasonic.com ([157.8.1.157]) by smtp.mei.co.jp (8.12.11.20060614/3.7W/kc-maile12) with ESMTP id p74A9Xfi011393; Thu, 4 Aug 2011 19:09:33 +0900 (JST) Received: from epochmail.jp.panasonic.com ([157.8.1.130]) by mail.jp.panasonic.com (8.11.6p2/3.7W/kc-maili17) with ESMTP id p74A9Xf06981; Thu, 4 Aug 2011 19:09:33 +0900 Received: by epochmail.jp.panasonic.com (8.12.11.20060308/3.7W/lomi15) id p74A9XAf006365; Thu, 4 Aug 2011 19:09:33 +0900 Received: from localhost by lomi15.jp.panasonic.com (8.12.11.20060308/3.7W) with ESMTP id p74A9XnY006353; Thu, 4 Aug 2011 19:09:33 +0900 Date: Thu, 04 Aug 2011 19:09:32 +0900 (JST) Message-Id: <20110804.190932.1142818667055047551.okuno.kohji@jp.panasonic.com> To: kostikbel@gmail.com From: Kohji Okuno In-Reply-To: <20110804100426.GB17489@deviant.kiev.zoral.com.ua> References: <20110804095043.GA17489@deviant.kiev.zoral.com.ua> <20110804.185600.366306193153346256.okuno.kohji@jp.panasonic.com> <20110804100426.GB17489@deviant.kiev.zoral.com.ua> Organization: Panasonic Corporation X-Mailer: Mew version 6.3 on Emacs 23.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, okuno.kohji@jp.panasonic.com Subject: Re: Bug: devfs is sure to have the bug. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 04 Aug 2011 10:09:35 -0000 Hello Kostik, >> > On Thu, Aug 04, 2011 at 11:41:39AM +0900, Kohji Okuno wrote: >> >> But, now I'm using 8.1-RELEASE. May I have advice about 8.X ? >> > Do you mean a patch for the stable/8 ? I believe it is enough to >> > apply rev. 211628 to stable/8, then the patch I posted yesterday >> > should be compilable. >> >> I'm sorry. >> I need a patch for 8.1-RELEASE. Could you propose patch? > Did you tried to apply the 211628 and the patch I mailed, to 8.1 ? > I am not very interested in porting this stuff for such old system. > On the other hand, I am unaware of large changes in devfs between > 8.1 and latest stable. No. Because the difference was large as you were poingint out, I did not your patch. Now, I'm trying the following patch. devfs_populate(struct devfs_mount *dm) { +#if 1 + unsigned gen; + sx_assert(&dm->dm_lock, SX_XLOCKED); + gen = devfs_generation; + if (dm->dm_generation == gen) + return; + while (devfs_populate_loop(dm, 0)) + continue; + dm->dm_generation = gen; +#else sx_assert(&dm->dm_lock, SX_XLOCKED); if (dm->dm_generation == devfs_generation) return; while (devfs_populate_loop(dm, 0)) continue; dm->dm_generation = devfs_generation; +#endif } /*