PATCH: remove fusion_init from linux-2.4.9/drivers/block/genhd.c
Hi Alan,
Could you please remove the fusion_init() call fromdrivers/block/genhd.c in your -ac tree and forward the change to Linus at your convenience? (If you'd rather I follow some other procedure, please let me know.) I have appended the following to this message:
1. Email from Steve Ralston tepidly approving integration of the change by you and Linus.
2. My original email to Steve Ralson (fusion driver maintainer) justifying the change.
3. A (fake) patch to remove fusion_init from linux-2.4.9/drivers/block/genhd.c for clarity and convenience.
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104 [email protected] \ / San Jose, California 95129-1034 +1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
Quoted 19 lines
From [email protected] Wed Aug 22 11:25:23 2001
Hi Adam,
Offhand, your removal of the
fusion_init()call fromdrivers/block/genhd.cseems Ok. I'm trying to remember the history/sequence on how and why it got put in there in the first place:-) It may be that an early version of the
fusion driver didn't have the code which automatically callsfusion_init()ifmpt_registeris called first, and a no longer needed call offusion_initfromgenhd.cnever got cleaned up.I want to check a few more things on my end, but unless you hear otherwise, it looks Ok to go ahead and remove any external calls to
fusion_init(other than viamodule_init). You can relay the request to Alan and/or Linus.
Quoted 44 lines
Regards,
-SteveRPS: I may be blind, otherwise I sure didn't see a patch included in your posting:-)
Quoted 38 lines
-----Original Message-----
From: Adam J. Richter [SMTP:[email protected]]
Sent: Monday, August 20, 2001 6:54 PM
To: [email protected]
Cc: [email protected]
Subject: PATCH:linux-2.4.9/drivers/block/genhd.celiminating
unnecessaryfusion_initcall
linux-2.4.9/drivers/block/genhd.ccallsfusion_init, butfusion_initis again called unconditionally due to themodule_init()call at the end ofdrivers/message/fusion/mptbase.c. The only effect of the second call is to possibly generate a printk, since the fusion driver has code to protect against this case. However, the fusion driver also has code that automatically callsfusion_initifmpt_registeris called beforefusion_init, so there does not seem to be a need to an early call indrivers/block/genhd.c.So, the following patch removes the unnecessary call
fromgenhd.c. I believe no changes to the fusion driver or the initialization order in linux/Makefile are necessary.By the way, this is a fake patch. The kernel that I am
actually using has nodrivers/block/genhd.canymore, since I have eliminating all of its calls.Steven: could you please comment on this patch? If you
see no problems with it, I would like to ask Alan and Linus to integrate it into their kernels (or you can do so, or we can follow whatever procedure you prefer). Please let me know. Thanks in advance.Signature · 6 lines
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104 [email protected] \ / San Jose, California 95129-1034 +1 408 261-6630 | g g d r a s i l United States of America fax +1 408 261-6631 "Free Software For The Rest Of Us."
drivers/block/genhd.c +0 -6
@@ -21,9 +21,6 @@#ifdef CONFIG_BLK_DEV_DAC960 extern void DAC960_Initialize (void );#endif -#ifdef CONFIG_FUSION_BOOT -extern int fusion_init (void ); -#endif extern int net_dev_init (void );extern void console_map_init (void );extern int soc_probe (void );
@@ -40,9 +37,6 @@#endif #ifdef CONFIG_BLK_DEV_DAC960 DAC960_Initialize (); -#endif -#ifdef CONFIG_FUSION_BOOT -fusion_init ();#endif #ifdef CONFIG_FC4_SOC /* This has to be done before scsi_dev_init */