]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Btrfs: add the missing mutex unlock in write_all_supers()
authorStefan Behrens <sbehrens@giantdisaster.de>
Wed, 11 Sep 2013 07:59:22 +0000 (09:59 +0200)
committerChris Mason <chris.mason@fusionio.com>
Sat, 21 Sep 2013 15:05:28 +0000 (11:05 -0400)
commita724b4369097897db45d61108c0e976912e586c7
tree3821e5db97ad5fb4b11364e3f7f3d595b20c5ebd
parentf4ab9ea706f2c6e4aad544145353b81afe7500e1
Btrfs: add the missing mutex unlock in write_all_supers()

The BUG() was replaced by btrfs_error() and return -EIO with the
patch "get rid of one BUG() in write_all_supers()", but the missing
mutex_unlock() was overlooked.

The 0-DAY kernel build service from Intel reported the missing
unlock which was found by the coccinelle tool:

    fs/btrfs/disk-io.c:3422:2-8: preceding lock on line 3374

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/disk-io.c