]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: close all bdevs on mount failure
authorIlya Dryomov <idryomov@gmail.com>
Wed, 19 Oct 2011 21:06:20 +0000 (00:06 +0300)
committerDavid Sterba <dsterba@suse.cz>
Thu, 20 Oct 2011 16:20:57 +0000 (18:20 +0200)
commit0a7c888965f47e40f1c9e6d6ce987d6720e264fa
treeb3f9d79be8f78ddfec4ab4e2c2aefd27916fd26a
parent27ae00f4a6d4b717a3ac055230b616bbc955fd3b
Btrfs: close all bdevs on mount failure

Fix a bug introduced by c8a808c5.  We have to return EINVAL on mount
failure, but doing that too early in the sequence leaves all of the
devices opened exclusively.  This also fixes an issue where under some
scenarios only a second mount -o degraded <devices> command would
succeed.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/btrfs/volumes.c