Re: init scripts problems ?

denis bonnenfant <[email protected]> Wed, 07 Dec 2005 14:54:16 +0100
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
Peter T. Breuer wrote:
> "Also sprach Peter T. Breuer:"
> 
>>In a separate patch here I moved the array notifications into a
>>tasklet, since I was worried about racing or deadlock in a circle.  I
>>could give you that patch to see if it helps. If it doesn't, it at least
>>eliminates the array communication as a problem. 

It doesn't works !  it even worse that with the other patch, as i was able to block everything with just starting 2 clients !
echo 0  kills it, i can restart a client, set up an array, stop the client...

No changes, client is not killed, md can't be stopped.

then starting a new client leads to kernel oops :

Unable to handle kernel NULL pointer dereference at virtual address 0000000c
  printing eip:
c015e90a
*pde = 00000000
Oops: 0002 [#1]
PREEMPT
Modules linked in: raid1 bitmap md enbd_ioctl enbd parport_pc lp parport ohci_hcd ehci_hcd i2c_piix4 i2c_core shpchp pci_hotplug intel_agp uhci_hcd 
mptscsih mptbase pcnet32
CPU:    0
EIP:    0060:[<c015e90a>]    Not tainted VLI
EFLAGS: 00010207   (2.6.12.3-fr1)
EIP is at do_open+0x2ca/0x360
eax: 00000000   ebx: caed8000   ecx: cee423c0   edx: 00000000
esi: cfee0040   edi: cfee0040   ebp: d093dd80   esp: caed9ee4
ds: 007b   es: 007b   ss: 0068
Process enbd-client (pid: 3617, threadinfo=caed8000 task=caf085a0)
Stack: cee4244c caed9ef8 caed9efc caed8000 00000000 00000000 cbd0ea80 cbd0ea80
        cfee0040 00000001 c015ea64 cfee0040 cbd0ea80 cbd0ea80 cbcb4928 cfee4300
        c015539a cbcb4928 cbd0ea80 42b2c7b8 00008802 00008802 cbc87000 caed8000
Call Trace:
  [<c015ea64>] blkdev_open+0x34/0x70
  [<c015539a>] dentry_open+0x15a/0x240
  [<c0155238>] filp_open+0x68/0x70
  [<c01554de>] get_unused_fd+0x5e/0xd0
  [<c0155619>] sys_open+0x49/0x90
  [<c0103185>] syscall_call+0x7/0xb
Code: 85 ed 74 20 bb 00 e0 ff ff 21 e3 ff 43 14 ff 8d 00 01 00 00 83 7d 00 02 74 78 ff 4b 14 8b 43 08 a8 08 75 67 8b 56 3c 39 f2 74 1d <ff> 4a 0c 0f 
88 16 06 00 00 8b 56 3c ff 42 48 ff 42 0c 0f 8e 14

I have many messages from the tasklet (thousands of lines...)