[PATCH] shm to sysfs rebuild.

From: Frederick, Fabian
Date: Sun Aug 10 2003 - 08:29:16 EST


Patrick,

Here's shm to sysfs rebuild following your advices :

Summary :

-Removing kobj_map
-Adding object memsetting rather than field/field NULL
-Declaring attributes global
-Adding pointer compare rather than string compare
-Removing unnecessary pressure on the stack
-Using kobj_type
-shm destruction moved to kobject release function
-id seek was trivial.Attrshow rewritten.
-Tested against recursive fgreps-kde-personal benchmark
program
-Removed might_sleep warning (shm_unlock was global lock to
kobject_registration (fs node lock)
-Checking release code in front of all shm_destroy calls.

Patch: http://fabian.unixtech.be/kernel/shmkobject090803.diff

It's against 2.6.0test2.If it's ok to you, could you apply ?

Regards,
Fabian
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/