Re: "loop device recursion avoidance" patch causes difficulties

From: Andrew Morton
Date: Wed May 18 2005 - 16:09:14 EST


Lubo_ Dole_el <lubosd@xxxxxxxxx> wrote:
>
> I've created a bugreport at http://bugme.osdl.org/show_bug.cgi?id=4472
> and I was advised to write to this list.
>
> A patch called "loop device recursion avoidance" which appeared in
> 2.6.11 kernel has complicated ISO image mounting from another mounted
> media.

Does this help?


diff -puN drivers/block/loop.c~loop-recusrion-avoidance-fix drivers/block/loop.c
--- 25/drivers/block/loop.c~loop-recusrion-avoidance-fix Wed May 18 14:03:14 2005
+++ 25-akpm/drivers/block/loop.c Wed May 18 14:03:14 2005
@@ -765,10 +765,8 @@ static int loop_set_fd(struct loop_devic
goto out_putf;

l = f->f_mapping->host->i_bdev->bd_disk->private_data;
- if (l->lo_state == Lo_unbound) {
- error = -EINVAL;
- goto out_putf;
- }
+ if (l->lo_state == Lo_unbound)
+ break;
f = l->lo_backing_file;
}

_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/