【[Consulting about: The scsi disk driver of ub and storage kernel 2.6.39 ]】
Hi
Quoted 7 lines · Zhangzhansheng
Mathias:
I am so sorry to trouble you again.
As you know, the kernel 2.6.39 has two scsi drivers including the ub and the mass storage, which those respectively located at directory
drivers/block/ub.canddrivers/usb/storage.The Ub and storage driver both can be used for USB storage driver of USB device, So I want to know which driver should be correctly used in kernel 2.6.39.
2.6.39 is very old, 13 years now.
Only recommendation I can give is to update the kernel.
Quoted 7 lines
The question is as follow:
I recently use the kernel 2.6.39 scsi disk driverub.c, encountered one deadlock issue. The root cause is that the tasklet function ofub_scsi_action(ub.c)on the CPU0 cutting off the CPU hardware interrupt for a long time which causing IPI interrupt sended by CPU1 without response. At the same time, the tasklet function ofub_scsi_actionon CPU0 core is attempting to obtain the lockA holded by the other thread task on CPU1 core which causing the lockA occurred deadlock.If I replace the ub (
drivers/block/ub.c) with the mass storage (drivers/usb/storage) in kernel 2.6.39 , whether it will cause potential problem?
I'm not familiar with the Ub driver at all. Looks like it was removed in v3.7 kernel. It doesn't make much sense for anybody to look into it anymore.
Alan Stern would know about the mass storage driver
Thanks
Mathias
Quoted 20 lines · Mathias Nyman
Hi
Quoted 7 lines · Zhangzhansheng
Mathias:
I am so sorry to trouble you again.
As you know, the kernel 2.6.39 has two scsi drivers including the ub and the mass storage, which those respectively located at directory
drivers/block/ub.canddrivers/usb/storage.The Ub and storage driver both can be used for USB storage driver of USB device, So I want to know which driver should be correctly used in kernel 2.6.39.
2.6.39 is very old, 13 years now.
Only recommendation I can give is to update the kernel.Quoted 6 lines
The question is as follow:
I recently use the kernel 2.6.39 scsi disk driverub.c, encountered one deadlock issue. The root cause is that the tasklet function ofub_scsi_action(ub.c)on the CPU0 cutting off the CPU hardware interrupt for a long time which causing IPI interrupt sended by CPU1 without response. At the same time, the tasklet function ofub_scsi_actionon CPU0 core is attempting to obtain the lockA holded by the other thread task on CPU1 core which causing the lockA occurred deadlock.
Quoted 6 lines
Quoted 1 line
If I replace the ub (
drivers/block/ub.c) with the mass storage (drivers/usb/storage) in kernel 2.6.39 , whether it will cause potential problem?I'm not familiar with the Ub driver at all. Looks like it was removed in v3.7 kernel. It doesn't make much sense for anybody to look into it anymore.
Alan Stern would know about the mass storage driver
The best way to find out what will happen with the other driver is to try it and see. Anything we can tell you would be only a guess.
However, as Mathias said, you really should not be using a 2.6 kernel. The current kernel version is 6.9, and you can imagine how much it has changed and improved in the meantime.
Alan Stern