Skip to contentSkip to conversation

2.4.14 breaks block/loop.c (loopback device)

DISCUSSION Tim Tassonis 1 participant 1 message Nov 6, 2001 Block layer

lore
Share & tools
lore
#0 lore raw

Hi

Quoted 3 lines

Hi!

The latest kernel seems to breake the loop device. I used 2.4.13 before,

and

Quoted 3 lines

everything was fine. I didn't change my kernel config when upgrading.

I compile the loop device as a module. trying to modprobe/insmod it, I

get the

Quoted 3 lines

following error message:

unresolved symbol in loop.o: deactivate_page

You can apply below patch to fix this. Worked for me with no problem. This was already discussed on the list and Linus said this would be the appropriate fix.

drivers/block/loop.c Tue Nov 6 10:43:51 2001 renamed from drivers/block/loop.c Tue Nov 6 10:41:15 2001 +0 -2
diff -ru linux/drivers/block/loop.c linux-patched/drivers/block/loop.c
@@ -218,14 +218,12 @@
        index++;
        pos += size;
        UnlockPage(page);
-       deactivate_page(page);
        page_cache_release(page);
    }
    return 0;
 
 unlock:
    UnlockPage(page);
-   deactivate_page(page);
    page_cache_release(page);
 fail:
    return -1;