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 | c9e5752d3f060e665d1643427d7c0dddd2d934f3 (patch) | |
tree | 6f6b043a8a66f12ba2889d7837e7e604303215fb /net | |
parent | e0ecd5e9df067c38cd62ad7244013f51e23f9045 (diff) |
libceph: init event->node in ceph_osdc_create_event()
(cherry picked from commit 3ee5234df68d253c415ba4f2db72ad250d9c21a9)
The red-black node node in the ceph osd event structure is not
initialized in create_osdc_create_event(). Because this node can
be the subject of a RB_EMPTY_NODE() call later on, we should ensure
the node is initialized properly for that.
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 'net')
-rw-r--r-- | net/ceph/osd_client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index 1a49ebfef0d3..8cfa306f84f6 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c @@ -1600,6 +1600,7 @@ int ceph_osdc_create_event(struct ceph_osd_client *osdc, event->data = data; event->osdc = osdc; INIT_LIST_HEAD(&event->osd_node); + RB_CLEAR_NODE(&event->node); kref_init(&event->kref); /* one ref for us */ kref_get(&event->kref); /* one ref for the caller */ init_completion(&event->completion); |