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:
Trond Myklebust
2018-10-01 10:41:57 -04:00
committed by J. Bruce Fields
父節點 ed00c2f652
當前提交 736c6625de
共有 2 個文件被更改,包括 27 次插入11 次删除

查看文件

@@ -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 */