diff options
author | Konstantin Khlebnikov | 2010-05-20 21:21:34 +0200 |
---|---|---|
committer | Jens Axboe | 2010-05-24 09:06:59 +0200 |
commit | bca4b914b5da3d8e7b9b647f620b71dc85c0c394 (patch) | |
tree | ed9c468396ec6ca6a04da9f7fbc341eee95e3930 /include | |
parent | fbmem: avoid printk format warning with 32-bit resources (diff) | |
download | kernel-qcow2-linux-bca4b914b5da3d8e7b9b647f620b71dc85c0c394.tar.gz kernel-qcow2-linux-bca4b914b5da3d8e7b9b647f620b71dc85c0c394.tar.xz kernel-qcow2-linux-bca4b914b5da3d8e7b9b647f620b71dc85c0c394.zip |
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 <khlebnikov@openvz.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/iocontext.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/iocontext.h b/include/linux/iocontext.h index a0bb301afac0..64d529133031 100644 --- a/include/linux/iocontext.h +++ b/include/linux/iocontext.h @@ -7,7 +7,6 @@ struct cfq_queue; struct cfq_io_context { void *key; - unsigned long dead_key; struct cfq_queue *cfqq[2]; |