block: free io_context cached request entries automatically for-2.6.39/ioc-rq-alloc
authorJens Axboe <jaxboe@fusionio.com>
Fri, 4 Mar 2011 22:00:07 +0000 (23:00 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 4 Mar 2011 22:00:07 +0000 (23:00 +0100)
commit7a91e8d4ada8c66b829539eb8b38f1005f476923
tree35eddb499d50a4c18c132d96c706a798692b431d
parent427ec31b74d59878d5ff308ca106e864282e8c19
block: free io_context cached request entries automatically

Add a forward rolling timer that frees entries in the cache when
they get too old. For a system with a lot of disks, we don't want
to leave this memory around indefinitely.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-ioc.c
include/linux/iocontext.h