Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 184
Rep:
How to stop scsi_eh_#
I have a driver that adds a scsi host via scsi_add_host(). When my driver is calls removes the scsi host via scsi_remove_host I check the current running process, and the scsi_eh_# (the scsi error handler) is still running for the removed scsi host. When I try unloading the LSI SAS driver all of the associated scs_eh_# with it are stopped/killed. How do I get it to do this when my driver removes its scsi?
SCSI host and SCSI error handler are in the different context. That means that SCSI host isn't relative to SCSI error handler. It isn't necessary when your driver is removed.
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 184
Original Poster
Rep:
Quote:
Originally Posted by nini09
SCSI host and SCSI error handler are in the different context. That means that SCSI host isn't relative to SCSI error handler. It isn't necessary when your driver is removed.
Then do you know what function call starts and stops the error handler process? My system is going to need to load and unload this SCSI driver a bunch of times, so I don't want to end up with hundreds of these error handlers running for SCSI hosts that don't exits any more.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.