Re: 【[Consulting about: The scsi disk driver of ub and storage kernel 2.6.39 ]】

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

On 7.6.2024 13.14, Zhangzhansheng wrote:
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.c and drivers/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.


The question is as follow:
I recently use the kernel 2.6.39 scsi disk driver ub.c , encountered one deadlock issue. The root cause is that the tasklet function of ub_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 of ub_scsi_action on 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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux