Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] libata: Convert from module_init to subsys_initcall

When building a monolithic kernel, the load order of drivers does not
work for SAS libata users, resulting in a kernel oops.

Convert libata to use subsys_initcall instead of module_init, which
ensures that libata gets loaded before any LLDD.

This is the same thing that scsi core does to solve the problem. The
load order problem was observed on ipr SAS adapters and should exist for
other SAS users as well.

Signed-off-by: Brian King <brking@us.ibm.com>
Acked-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Brian King and committed by
Linus Torvalds
a4625085 cb07c9a1

+1 -1
+1 -1
drivers/ata/libata-core.c
··· 5957 5957 destroy_workqueue(ata_aux_wq); 5958 5958 } 5959 5959 5960 - module_init(ata_init); 5960 + subsys_initcall(ata_init); 5961 5961 module_exit(ata_exit); 5962 5962 5963 5963 static unsigned long ratelimit_time;