From owner-cvs-src-old@FreeBSD.ORG Thu Aug 12 08:36:43 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1766106568C for ; Thu, 12 Aug 2010 08:36:42 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9FC4A8FC0A for ; Thu, 12 Aug 2010 08:36:42 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o7C8aglB003696 for ; Thu, 12 Aug 2010 08:36:42 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o7C8agJh003695 for cvs-src-old@freebsd.org; Thu, 12 Aug 2010 08:36:42 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <201008120836.o7C8agJh003695@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Thu, 12 Aug 2010 08:36:23 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern vfs_bio.c vfs_subr.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2010 08:36:43 -0000 kib 2010-08-12 08:36:23 UTC FreeBSD src repository Modified files: sys/kern vfs_bio.c vfs_subr.c Log: SVN rev 211213 on 2010-08-12 08:36:23Z by kib The buffers b_vflags field is not always properly protected by bufobj lock. If b_bufobj is not NULL, then bufobj lock should be held when manipulating the flags. Not doing this sometimes leaves BV_BKGRDINPROG to be erronously set, causing softdep' getdirtybuf() to stuck indefinitely in "getbuf" sleep, waiting for background write to finish which is not actually performed. Add BO_LOCK() in the cases where it was missed. In collaboration with: pho Tested by: bz Reviewed by: jeff MFC after: 1 month Revision Changes Path 1.594 +49 -4 src/sys/kern/vfs_bio.c 1.789 +10 -0 src/sys/kern/vfs_subr.c