Itai, After applying your patch to 2.4.18, I see the following problems: 1. ide-scsi does NOT work. /proc/scsi/scsi shows NO devices and /proc/scsi/ide-scsi is empty. 2. /proc/scsi/{scsi, ide-scsi, scsi_test} are all empty! 3. After ``rmmod scsi_test'' and ``ls /proc/scsi'' the kernel OOPS-es. NONE of those problems exist with a non-patched kernel. I used kernel 2.4.18, but doubt there'd difference for 2.5.x since the host_no stuff hasn't changed (2.5.22). I've attached the OOPS and the tgz of my testing module scsi_test.o. Interested parties: this is in regards to the scsi subsystem assigning _repeating_ host numbers to hosts registered! See my message ``/proc/scsi/driver/hosts with same numeric???'' dated 2002/05/29 on linux-scsi ML. To repeat the problem: $ insmod scsi_reg.o $ rmmod scsi_reg $ insmod scsi_req.o MaxHosts=20 $ ls /proc/scsi/scsi_test Voila! Here is the OOPS: ---------------------------- Jun 18 16:49:23 canoe kernel: Unable to handle kernel paging request at virtual address e5a59010 Jun 18 16:49:23 canoe kernel: printing eip: Jun 18 16:49:23 canoe kernel: c0150c68 Jun 18 16:49:23 canoe kernel: *pde = 1d58c067 Jun 18 16:49:23 canoe kernel: *pte = 00000000 Jun 18 16:49:23 canoe kernel: Oops: 0002 Jun 18 16:49:23 canoe kernel: CPU: 0 Jun 18 16:49:23 canoe kernel: EIP: 0010:[proc_get_inode+152/256] Not tainted Jun 18 16:49:23 canoe kernel: EIP: 0010:[] Not tainted Jun 18 16:49:23 canoe kernel: EFLAGS: 00010286 Jun 18 16:49:23 canoe kernel: eax: e5a59000 ebx: dc921880 ecx: 00000001 edx: 00000003 Jun 18 16:49:23 canoe kernel: esi: dc337c80 edi: dc9218d5 ebp: dc06e600 esp: dc31de4c Jun 18 16:49:23 canoe kernel: ds: 0018 es: 0018 ss: 0018 Jun 18 16:49:23 canoe kernel: Process ls (pid: 1151, stackpage=dc31d000) Jun 18 16:49:23 canoe kernel: Stack: dff83800 dc06e665 c0152721 dff83800 000011bb dc921880 ffffffea 00000000 Jun 18 16:49:23 canoe kernel: dc62f400 c0145569 c1787100 000001f0 dc06e600 fffffff4 dc660580 dc62f400 Jun 18 16:49:23 canoe kernel: c013cc33 dc660580 dc06e600 dc31df64 00000000 dc660580 dc31df9c c013d3ec Jun 18 16:49:23 canoe kernel: Call Trace: [proc_lookup+161/176] [d_alloc+25/368] [real_lookup+163/208] [link_path_walk+1708/2000] [filldir64+239/352] Jun 18 16:49:23 canoe kernel: Call Trace: [] [] [] [] [] Jun 18 16:49:23 canoe kernel: [do_page_fault+764/1239] [getname+109/176] [__user_walk+58/80] [sys_lstat64+20/112] [error_code+52/60] [system_call+51/56] Jun 18 16:49:23 canoe kernel: [] [] [] [] [] [] Jun 18 16:49:23 canoe kernel: Jun 18 16:49:23 canoe kernel: Code: ff 40 10 8b 43 24 83 48 14 18 8b 43 18 85 c0 74 06 89 86 88 ------------------------------------ -- Luben