From: Jens Axboe Date: Sat, 22 Jul 2006 13:37:43 +0000 (+0200) Subject: [PATCH] elevator: define ioc counting mechanism X-Git-Tag: v2.6.19-rc1~640^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a893e837bb470867d74c05d6c6b97bba5a96185;p=pandora-kernel.git [PATCH] elevator: define ioc counting mechanism None of the in-kernel primitives for handling "atomic" counting seem to be a good fit. We need something that is essentially free for incrementing/decrementing, while the read side may be more expensive as we only ever need to do that when a device is removed from the kernel. Use a per-cpu variable for maintaining a per-cpu ioc count and define a reading mechanism that just sums up the values. Signed-off-by: Jens Axboe --- Reading git-diff-tree failed