diff options
author | Alex Elder <elder@inktank.com> | 2012-12-17 12:23:48 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-17 08:46:47 -0800 |
commit | e15e4f8a7f6cc7670c99a49642cf25525c93f8d1 (patch) | |
tree | 0ecc7371ab012d32124e205ea8e2bf7f489a6a9e /lib/cpu-notifier-error-inject.c | |
parent | c9e5752d3f060e665d1643427d7c0dddd2d934f3 (diff) |
libceph: don't use rb_init_node() in ceph_osdc_alloc_request()
(cherry picked from commit a978fa20fb657548561dddbfb605fe43654f0825)
The red-black node in the ceph osd request structure is initialized
in ceph_osdc_alloc_request() using rbd_init_node(). We do need to
initialize this, because in __unregister_request() we call
RB_EMPTY_NODE(), which expects the node it's checking to have
been initialized. But rb_init_node() is apparently overkill, and
may in fact be on its way out. So use RB_CLEAR_NODE() instead.
For a little more background, see this commit:
4c199a93 rbtree: empty nodes have no color"
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions