[ENBD] 2.5.46 update

Tad Kollar enbd@lists.community.tummy.com
Tue, 12 Nov 2002 14:42:39 -0500


Using nosmp breaks things to the point where the kernel can't finish booting - 
it gets to the hard drive check and locks up. If you still want me to try a 
non-smp kernel, I'll recompile and see if that fares any better...

> Yes. Try that. I'm not going to read the blkdev_dequeue function, but I 
> suspect that might be it.

Okay, now there's an oops instead of a lockup:

NBD #4892[0]: nbd_init Network Block Device originally by pavel@elf.mj.gts.cz
NBD #4893[0]: nbd_init Network Block Device port to 2.0 by ptb@it.uc3m.es
NBD #4895[0]: nbd_init Network Block Device move networking to user space by 
amarin@it.uc3m.es
NBD #4897[0]: nbd_init Enhanced Network Block Device 2.4.30 $Date: 2002/11/04 
01:08:08 $ by ptb@it.uc3m.es
NBD #4915[0]: nbd_init registered device at major 43
NBD #3657[0]: nbd_find nbd_find called with part = 0x0
NBD #3657[1]: nbd_find nbd_find called with part = 0x0
NBD #3657[2]: nbd_find nbd_find called with part = 0x0
NBD #2442[0]: nbd_set_sock increased socket count to 1
NBD #2442[1]: nbd_set_sock increased socket count to 2
NBD #3657[3]: nbd_find nbd_find called with part = 0x0
NBD #3623[0]: nbd_media_changed nbd_media_changed called on nda
NBD #3631[0]: nbd_revalidate revalidate called on nda
NBD #3631[1]: nbd_revalidate revalidate called on nda
  nda:------------[ cut here ]------------
kernel BUG at drivers/block/ll_rw_blk.c:1476!
invalid operand: 0000
enbd ipt_MASQUERADE ipt_REJECT ipt_LOG ipt_limit ipt_state iptable_nat 
ip_conntrack iptable_filter ip_tables tg3 3c59x sk98lin crc32 divdi3
CPU:    1
EIP:    0060:[<c0266356>]    Not tainted
EFLAGS: 00010006
EIP is at __blk_put_request+0xd6/0xf0
eax: 00000000   ebx: f88de558   ecx: f70da380   edx: 00000000
esi: f88de520   edi: 00000000   ebp: f70da380   esp: f6ff1e0c
ds: 0068   es: 0068   ss: 0068
Process enbd-client (pid: 1189, threadinfo=f6ff0000 task=f6fdf980)
Stack: f70da380 f88cd980 f88de520 f88cd4cc 00000282 c02663d1 f88de520 f70da380
        f7d3a000 40130088 00000000 f70da380 00000001 f6ff1e70 f88c2824 f70da380
        00000001 00001000 00000000 00000001 00000000 f88cd980 f88ce220 00001000
Call Trace:
  [<f88cd980>] nbd_dev+0x0/0xf740 [enbd]
  [<f88de520>] the_nbd_queue+0x0/0xe8 [enbd]
  [<f88cd4cc>] nbd_lock+0x0/0x8 [enbd]
  [<c02663d1>] blk_put_request+0x61/0xa0
  [<f88de520>] the_nbd_queue+0x0/0xe8 [enbd]
  [<f88c2824>] nbd_commit+0x54/0x190 [enbd]
  [<f88cd980>] nbd_dev+0x0/0xf740 [enbd]
  [<f88ce220>] nbd_dev+0x8a0/0xf740 [enbd]
  [<f88c3233>] nbd_ack+0x313/0x52c [enbd]
  [<f88ce220>] nbd_dev+0x8a0/0xf740 [enbd]
  [<f88ce240>] nbd_dev+0x8c0/0xf740 [enbd]
  [<f88cd980>] nbd_dev+0x0/0xf740 [enbd]
  [<c02a7d68>] sys_sendto+0xe8/0x100
  [<f88ce220>] nbd_dev+0x8a0/0xf740 [enbd]
  [<f88c618c>] nbd_ioctl+0x5d0/0xdb4 [enbd]
  [<f88ce220>] nbd_dev+0x8a0/0xf740 [enbd]
  [<c021dee7>] copy_to_user+0x57/0x60
  [<f88cd980>] nbd_dev+0x0/0xf740 [enbd]
  [<c0267de3>] blkdev_ioctl+0xb3/0x490
  [<c016642a>] sys_ioctl+0x16a/0x2db
  [<c0109787>] syscall_call+0x7/0xb

Code: 0f 0b c4 05 15 f3 31 c0 e9 64 ff ff ff 8d b6 00 00 00 00 8d
   unknown partition table
NBD #3657[4]: nbd_find nbd_find called with part = 0x0
NBD #2644[0]: my_nbd_set_sig (0): live process 1189 is trying to set sig
NBD #2644[1]: my_nbd_set_sig (0): live process 1189 is trying to set sig
NBD #2639[0]: my_nbd_set_sig (0): dead process 1189 was setting sig, erasing pid

 >cat /proc/nbdinfo
Device a:       Open
[a] State:      verify, rw, enabled, plug, last error 0, lives 0, bp 0
[a] Queued:     +0R/0W curr (check 0R/0W) +1R/0W max
[a] Buffersize: 262144  (sectors=512, blocks=64)
[a] Blocksize:  4096    (log=12)
[a] Size:       480238464KB
[a] Blocks:     120059616
[a] Sockets:    2       (*)     (+)
[a] Requested:  1       (1)     (0)     1R/0W   max 1
[a] Despatched: 0       (0)     (0)     0R/0W   md5 0W (0 eq, 0 ne, 0 dn)
[a] Errored:    0       (0)     (0)     0+0
[a] Pending:    1       (1)     (0)     1R/0W+0R/0W
[a] B/s now:    0       (0R+0W)
[a] B/s ave:    0       (0R+0W)
[a] B/s max:    1.30M   (1.30MR+0W)
[a] Spectrum:   100%1
[a] Kthreads:   0       (0 waiting/0 running/1 max)
[a] Cthreads:   3       (+)     (+)
[a] Cpids:      3       (1191)  (1190)
Device b-p:     Closed