diff options
author | David Teigland <teigland@redhat.com> | 2012-05-15 16:07:49 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2012-07-16 14:17:52 -0500 |
commit | 1d7c484eeb167fc374294e38ae402de4097c8611 (patch) | |
tree | 82ed8a279b8f399205a15951c50c22aea67d7323 /fs/dlm/rcom.c | |
parent | c04fecb4d9f7753e0cbff7edd03ec68f8721cdce (diff) |
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 c8c298d8146..87f1a56eab3 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: |