block,elevator: use new hashtable implementation
authorSasha Levin <sasha.levin@oracle.com>
Mon, 17 Dec 2012 15:01:27 +0000 (10:01 -0500)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Jan 2013 13:43:13 +0000 (14:43 +0100)
commit242d98f077ac0ab80920219769eb095503b93f61
treedf4bd59a6db181b796ff8687339e4335e2c59104
parent9931faca02c604c22335f5a935a501bb2ace6e20
block,elevator: use new hashtable implementation

Switch elevator to use the new hashtable implementation. This reduces the
amount of generic unrelated code in the elevator.

This also removes the dymanic allocation of the hash table. The size of the table is
constant so there's no point in paying the price of an extra dereference when accessing
it.

This patch depends on d9b482c ("hashtable: introduce a small and naive
hashtable") which was merged in v3.6.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk.h
block/elevator.c
include/linux/elevator.h