knfsd: Improve lookup performance in the duplicate reply cache using an rbtree
Use an rbtree to ensure the lookup/insert of an entry in a DRC bucket is O(log(N)). Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:

committed by
J. Bruce Fields

父節點
ed00c2f652
當前提交
736c6625de
@@ -30,6 +30,7 @@ struct svc_cacherep {
|
||||
struct sockaddr_in6 k_addr;
|
||||
} c_key;
|
||||
|
||||
struct rb_node c_node;
|
||||
struct list_head c_lru;
|
||||
unsigned char c_state, /* unused, inprog, done */
|
||||
c_type, /* status, buffer */
|
||||
|
Reference in New Issue
Block a user