diff mbox

vga_arb warning [was: mmotm 2009-11-01-10-01 uploaded]

Message ID 20091103214845.9660895d.akpm@linux-foundation.org (mailing list archive)
State New, archived
Headers show

Commit Message

Andrew Morton Nov. 4, 2009, 5:48 a.m. UTC
None
diff mbox

Patch

--- 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;