[ENBD] fr1 hangs when trying to access raid device..

Arve Emil Myrås enbd@lists.community.tummy.com
Sun, 9 Feb 2003 16:46:04 +0100


"A month of sundays ago [Arve Emil Myr_s] wrote:"
>> >Or equivalently replace list_del with list_del_init
>> >everywhere that list_del occurs.
>> 
>> here somthing happends,, it does not oops anymore but i cant seem to =
get the same data out of the device that i put in:
>
>Well, I can't debug this at long distance. All I can say is that it
>works here.  If you can cause a change by swapping list_del by
>list_del_init then it is a heisenbug, and probably exposed by compiler
>differences (well, it's a bug, but one that needs hunting and I don't
>have the compiler that exposes it).  I am using 2.95.2.
>
>  gcc version 2.95.2 20000220 (Debian GNU/Linux)

oky,, im using gcc 3.2 guess that's the problem..>I also have been working on inserting the technology into the standard
>kernel raid1 driver, and I have it working, so there is no need to
>battle with my emulation of the raid code in fr1 1.0.  I wrote 2500
>lines of kernel C code in one month, and it is to be expected that =
there
>are bugs.  I only wanted to get the principle right and then later work
>on practical problems.  It's cost me about the same amount of time to
>insert the code into the existing driver, but there will be fewer bugs.
>
>I was going to make the release later in the evening, but I'll put what =
I
>have up for a quick look now.
>
>  ftp://oboe.it.uc3m.es/pub/Programs/fr1-2.0.tgz

Could not get this to load; got a compile warning:vserv:~/nsmp # cd fr1-2.0/vserv:~/nsmp/fr1-2.0 # ls.  ..  LICENCE  Makefile  README  drivers  includevserv:~/nsmp/fr1-2.0 # makemake TOPDIR=/usr/src/linux-2.4.20ctx-16nsmp -C drivers/md fr1.o md.omake[1]: Entering directory `/root/nsmp/fr1-2.0/drivers/md'cc -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -I/root/nsmp/fr1-2.0/include -I/usr/src/linux-2.4.20ctx-16nsmp/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common   -DKBUILD_BASENAME=raid1  -c -o raid1.o raid1.craid1.c:2086: warning: `__init_module_inline' defined but not usedraid1.c:2087: warning: `__cleanup_module_inline' defined but not usedcc -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -I/root/nsmp/fr1-2.0/include -I/usr/src/linux-2.4.20ctx-16nsmp/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common   -DKBUILD_BASENAME=bitmap  -c -o bitmap.o bitmap.cld -r -o fr1.o raid1.o bitmap.occ -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -I/root/nsmp/fr1-2.0/include -I/usr/src/linux-2.4.20ctx-16nsmp/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common   -DKBUILD_BASENAME=md  -c -o md.o md.cmd.c: In function `free_mddev':md.c:733: warning: implicit declaration of function `md_atomic_read'make[1]: Leaving directory `/root/nsmp/fr1-2.0/drivers/md'vserv:~/nsmp/fr1-2.0 # cp md.o /lib/modules/2.4.20ctx-16nsmp/kernel/drivers/md/cp: cannot stat `md.o': No such file or directoryvserv:~/nsmp/fr1-2.0 # cd drivers/md/vserv:~/nsmp/fr1-2.0/drivers/md # cp md.o /lib/modules/2.4.20ctx-16nsmp/kernel/drivers/md/vserv:~/nsmp/fr1-2.0/drivers/md # cp fr1.o /lib/modules/2.4.20ctx-16nsmp/kernel/drivers/md/vserv:~/nsmp/fr1-2.0/drivers/md # ls.   .bitmap.o.flags  .raid1.o.flags  bitmap.c  bitmap.o  md.c       md.c.patch  raid1.c       raid1.c.patch..  .md.o.flags      Makefile        bitmap.h  fr1.o     md.c.orig  md.o        raid1.c.orig  raid1.ovserv:~/nsmp/fr1-2.0/drivers/md # ls.   .bitmap.o.flags  .raid1.o.flags  bitmap.c  bitmap.o  md.c       md.c.patch  raid1.c       raid1.c.patch..  .md.o.flags      Makefile        bitmap.h  fr1.o     md.c.orig  md.o        raid1.c.orig  raid1.ovserv:~/nsmp/fr1-2.0/drivers/md # depmod -aedepmod: *** Unresolved symbols in /lib/modules/2.4.20ctx-16nsmp/kernel/drivers/md/md.odepmod:         md_atomic_readvserv:~/nsmp/fr1-2.0/drivers/md #must be the atomic_read thing...-Arve Emil