From patchwork Wed Nov 4 05:48:45 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 57463 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA45nmkH001079 for ; Wed, 4 Nov 2009 05:49:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751365AbZKDFtJ (ORCPT ); Wed, 4 Nov 2009 00:49:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751087AbZKDFtI (ORCPT ); Wed, 4 Nov 2009 00:49:08 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:35139 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbZKDFtH (ORCPT ); Wed, 4 Nov 2009 00:49:07 -0500 Received: from imap1.linux-foundation.org (imap1.linux-foundation.org [140.211.169.55]) by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id nA45mmV9004229 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Nov 2009 21:48:49 -0800 Received: from y.localdomain (localhost [127.0.0.1]) by imap1.linux-foundation.org (8.13.5.20060308/8.13.5/Debian-3ubuntu1.1) with SMTP id nA45mjc1019743; Tue, 3 Nov 2009 21:48:47 -0800 Date: Tue, 3 Nov 2009 21:48:45 -0800 From: Andrew Morton To: Jiri Slaby Cc: linux-kernel@vger.kernel.org, mm-commits@vger.kernel.org, Benjamin Herrenschmidt , Tiago Vignatti , Dave Airlie , kvm@vger.kernel.org, Greg KH , Kay Sievers Subject: Re: vga_arb warning [was: mmotm 2009-11-01-10-01 uploaded] Message-Id: <20091103214845.9660895d.akpm@linux-foundation.org> In-Reply-To: <4AEE01D9.8040902@gmail.com> References: <200911011807.nA1I7o95016136@imap1.linux-foundation.org> <4AEE01D9.8040902@gmail.com> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 X-Spam-Status: No, hits=-3.018 required=5 tests=AWL,BAYES_00 X-Spam-Checker-Version: SpamAssassin 3.2.4-osdl_revision__1.47__ X-MIMEDefang-Filter: lf$Revision: 1.188 $ X-Scanned-By: MIMEDefang 2.63 on 140.211.169.13 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org --- a/fs/attr.c~notify_change-callers-must-hold-i_mutex +++ a/fs/attr.c @@ -155,6 +155,8 @@ int notify_change(struct dentry * dentry return -EPERM; } + WARN_ON_ONCE(!mutex_is_locked(&inode->i_mutex)); + now = current_fs_time(inode->i_sb); attr->ia_ctime = now;