The patch titled new bd_mutex lockdep annotation has been added to the -mm tree. Its filename is new-bd_mutex-lockdep-annotation.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: new bd_mutex lockdep annotation From: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Use the gendisk partition number to set a lock class. Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Cc: Neil Brown <neilb@xxxxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Acked-by: Arjan van de Ven <arjan@xxxxxxxxxxxxxxx> Cc: Jason Baron <jbaron@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- fs/block_dev.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff -puN fs/block_dev.c~new-bd_mutex-lockdep-annotation fs/block_dev.c --- a/fs/block_dev.c~new-bd_mutex-lockdep-annotation +++ a/fs/block_dev.c @@ -355,10 +355,14 @@ static int bdev_set(struct inode *inode, static LIST_HEAD(all_bdevs); +static struct lock_class_key bdev_part_lock_key; + struct block_device *bdget(dev_t dev) { struct block_device *bdev; struct inode *inode; + struct gendisk *disk; + int part = 0; inode = iget5_locked(bd_mnt->mnt_sb, hash(dev), bdev_test, bdev_set, &dev); @@ -384,6 +388,11 @@ struct block_device *bdget(dev_t dev) list_add(&bdev->bd_list, &all_bdevs); spin_unlock(&bdev_lock); unlock_new_inode(inode); + mutex_init(&bdev->bd_mutex); + disk = get_gendisk(dev, &part); + if (part) + lockdep_set_class(&bdev->bd_mutex, &bdev_part_lock_key); + put_disk(disk); } return bdev; } _ Patches currently in -mm which might be from a.p.zijlstra@xxxxxxxxx are mm-tracking-shared-dirty-pages.patch mm-tracking-shared-dirty-pages-nommu-fix-2.patch mm-balance-dirty-pages.patch mm-optimize-the-new-mprotect-code-a-bit.patch mm-small-cleanup-of-install_page.patch mm-fixup-do_wp_page.patch mm-msync-cleanup.patch mm-tracking-shared-dirty-pages-checks.patch mm-tracking-shared-dirty-pages-wimp.patch mm-swap-write-failure-fixup.patch mm-swap-write-failure-fixup-update.patch mm-swap-write-failure-fixup-fix.patch block_devc-mutex_lock_nested-fix.patch remove-the-old-bd_mutex-lockdep-annotation.patch new-bd_mutex-lockdep-annotation.patch nfsd-lockdep-annotation.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html