On 23.03.2011 18:18, David Sterba wrote:
> Hi,
>
> I'm reviewing the atomic counters and the wait/wake infrastructure,
> just found two missed mutex_unlock()s in btrfs_scrub_dev() in error
> paths.
>
> On Fri, Mar 18, 2011 at 04:55:06PM +0100, Arne Jansen wrote:
>> This is the main scrub code.
>> + mutex_lock(&fs_info->scrub_lock);
>> + if (dev->scrub_device) {
>> + mutex_unlock(&fs_info->scrub_lock);
> mutex_unlock(&root->fs_info->fs_devices->device_list_mutex);
>
>> + scrub_workers_put(root);
>> + return -EINPROGRESS;
>> + }
>> + sdev = scrub_setup_dev(dev);
>> + if (IS_ERR(sdev)) {
>> + mutex_unlock(&fs_info->scrub_lock);
> mutex_unlock(&root->fs_info->fs_devices->device_list_mutex);
>
>> + scrub_workers_put(root);
>> + return PTR_ERR(sdev);
>> + }
Thanks, I'll add you as Reported-by if that's ok.
-Arne
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html