[lkml]   [2006]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 0/4] WorkStruct: Shrink work_struct by two thirds
Andrew Morton <> wrote:

> Could we reduce the migration pain by leaving the work_struct as-is and
> defining a new, leaner one and then incrementally migrating stuff over to
> it?

That involves more work in the end for a number of reasons:

(1) The more common use (I think) is the immediate, not the delayed work
item. One of them has to change, and it'd make sense for it to be the

(2) The internals of kernel/workqueue.c all refer to work_struct. They'd all
have to change as that'd no longer be the common bit.

(3) All the work callback functions have to change anyway, and they have to
be handed the most common structure as their context - assuming the third
reduction is acceptable.

(4) All the initialisers have to change anyway as they take one fewer
argument - assuming the third reduction is acceptable.

It'd be more feasible if the inventors of C had included C++-style function
overloading and structure inheritance, but they didn't.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-11-21 12:33    [W:0.137 / U:7.480 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site