linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Fastboot revisited: Asynchronous function calls
@ 2009-01-04 17:24 Arjan van de Ven
  2009-01-04 17:29 ` [PATCH 2/4] fastboot: make scsi probes asynchronous Arjan van de Ven
  0 siblings, 1 reply; 6+ messages in thread
From: Arjan van de Ven @ 2009-01-04 17:24 UTC (permalink / raw)
  To: linux-kernel
  Cc: torvalds, mingo, fweisbec, linux-scsi, linux-ide, linux-acpi,
	akpm

Hi,

This patch series is based on Linus' original reaction to some of the
fastboot patches which introduced an "asynchronous initcall level".
Linus did not like the initcall level approach much, and wanted a much
more finegrained kind of thing.

This patch series introduces asynchronous function calls.
The goal is still the same (boot faster), the method is entirely
different.

Asynchronous function calls allow drivers and subsystems to do
operations asynchronously, while providing a mechanism to serialize
the asynchronous operations at "externally visible" locations, such as
device number registrations. 

As such, this approach is NOT a "full parallel kernel init".
For one, it keeps device numbers stable. For another, it's very much
opt-in for any code using this.

Rather, it is more comparable to an out-of-order cpu, where computations
are done asynchronously, but are retired in program order.

This series first introduces the infrastructure in patch 1,
and then adds users of this infrastructure (scsi in patch2, libata in
patch 3 and acpi in patch 4).

To see this working, I uploaded a "before" and "after" kernel bootchart
for one of my testboxes at

http://www.fenrus.org/linux/before.svg
http://www.fenrus.org/linux/after.svg

As you can see with inkscape (or gimp or any other svg viewer), there
is still room for doing more things in parallel, but the 3 example usage
patches are a big win already.


One comment about the API:
Originally I had functionality in mind where the caller of
async_schedule() could get back the cookie value of the scheduled task.
However I had no users of this, so I removed the code to do this. If
someone finds a place where this is useful we can easily add this back.

-- 
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-04 18:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <fa.h0UoSd20jEtik35h1v63j+E67Io@ifi.uio.no>
     [not found] ` <fa.5PP24JO26n+WYiDr/9b4OySGjWY@ifi.uio.no>
     [not found]   ` <fa.FlPVm6dv2aVhxgrZlA92A/26QC8@ifi.uio.no>
     [not found]     ` <fa.xSdAPowIDNEH2rL6hWZp0t33p2U@ifi.uio.no>
     [not found]       ` <fa.abMnCBprOI1BL1RNVaAvYnUsaEw@ifi.uio.no>
     [not found]         ` <fa.opIcflAvDANLuO5+8NjVCjt/94o@ifi.uio.no>
2009-01-04 18:55           ` [PATCH 2/4] fastboot: make scsi probes asynchronous Sitsofe Wheeler
2009-01-04 17:24 [PATCH 0/4] Fastboot revisited: Asynchronous function calls Arjan van de Ven
2009-01-04 17:29 ` [PATCH 2/4] fastboot: make scsi probes asynchronous Arjan van de Ven
2009-01-04 18:05   ` Matthew Wilcox
2009-01-04 18:13     ` Arjan van de Ven
2009-01-04 18:38       ` Jaswinder Singh Rajput
2009-01-04 18:44         ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).