Skip to content

Commit

Permalink
block: remove padding from io_context on 64bit builds
Browse files Browse the repository at this point in the history
On 64 bit builds when CONFIG_BLK_CGROUP=n (the default) this removes 8
bytes of padding from structure io_context and drops its size from 72 to
64 bytes, so needing one fewer cachelines and allowing more objects per
slab in it's kmem_cache.

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>

----
patch against 2.6.33
compiled & test on x86_64 AMDX2
regards
Richard
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Richard Kennedy authored and Jens Axboe committed Feb 26, 2010
1 parent 024f906 commit 58c24a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/iocontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ struct io_context {
/*
* For request batching
*/
unsigned long last_waited; /* Time last woken after wait for request */
int nr_batch_requests; /* Number of requests left in the batch */
unsigned long last_waited; /* Time last woken after wait for request */

struct radix_tree_root radix_root;
struct hlist_head cic_list;
Expand Down

0 comments on commit 58c24a6

Please sign in to comment.