sunrpc/cache: change deferred-request hash table to use hlist.
authorNeilBrown <neilb@suse.de>
Thu, 12 Aug 2010 07:04:08 +0000 (17:04 +1000)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 22 Sep 2010 01:51:11 +0000 (21:51 -0400)
commit1117449276bb909b029ed0b9ba13f53e4784db9d
tree14b119924ac54165e6b18f3772cfe966b6883245
parent2ed5282cd9b44686a6e718269abb5c5cd332d8f1
sunrpc/cache: change deferred-request hash table to use hlist.

Being a hash table, hlist is the best option.

There is currently some ugliness were we treat "->next == NULL" as
a special case to avoid having to initialise the whole array.
This change nicely gets rid of that case.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/cache.h
net/sunrpc/cache.c