From: Konstantin Khlebnikov Date: Thu, 20 May 2010 19:21:34 +0000 (+0400) Subject: cfq-iosched: remove dead_key from cfq_io_context X-Git-Tag: v2.6.35-rc2~12^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bca4b914b5da3d8e7b9b647f620b71dc85c0c394;p=pandora-kernel.git cfq-iosched: remove dead_key from cfq_io_context Remove ->dead_key field from cfq_io_context to shrink its size to 128 bytes. (64 bytes for 32-bit hosts) Use lower bit in ->key as dead-mark, instead of moving key to separate field. After this for dead cfq_io_context we got cic->key != cfqd automatically. Thus, io_context's last-hit cache should work without changing. Now to check ->key for non-dead state compare it with cfqd, instead of checking ->key for non-null value as it was before. Plus remove obsolete race protection in cfq_cic_lookup. This race gone after v2.6.24-1728-g4ac845a Signed-off-by: Konstantin Khlebnikov Signed-off-by: Jens Axboe --- Reading git-diff-tree failed