diff options
author | David Teigland | 2012-05-15 23:07:49 +0200 |
---|---|---|
committer | David Teigland | 2012-07-16 21:17:52 +0200 |
commit | 1d7c484eeb167fc374294e38ae402de4097c8611 (patch) | |
tree | 82ed8a279b8f399205a15951c50c22aea67d7323 /fs/dlm/rcom.c | |
parent | dlm: use rsbtbl as resource directory (diff) | |
download | kernel-qcow2-linux-1d7c484eeb167fc374294e38ae402de4097c8611.tar.gz kernel-qcow2-linux-1d7c484eeb167fc374294e38ae402de4097c8611.tar.xz kernel-qcow2-linux-1d7c484eeb167fc374294e38ae402de4097c8611.zip |
dlm: use idr instead of list for recovered rsbs
When a large number of resources are being recovered,
a linear search of the recover_list takes a long time.
Use an idr in place of a list.
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/rcom.c')
-rw-r--r-- | fs/dlm/rcom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/rcom.c b/fs/dlm/rcom.c index c8c298d81463..87f1a56eab32 100644 --- a/fs/dlm/rcom.c +++ b/fs/dlm/rcom.c @@ -325,7 +325,7 @@ int dlm_send_rcom_lookup(struct dlm_rsb *r, int dir_nodeid) if (error) goto out; memcpy(rc->rc_buf, r->res_name, r->res_length); - rc->rc_id = (unsigned long) r; + rc->rc_id = (unsigned long) r->res_id; send_rcom(ls, mh, rc); out: |