summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e0ba718)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
node = rcu_dereference(*prev);
}
node = rcu_dereference(*prev);
}
- /* Another concurrent thread stole it ? If so, let it deal with this. */
- if (cmpxchg(&node->stolen, 0, 1) != 0)
- goto error;
+ if (!del_node) {
+ /*
+ * Another concurrent thread stole it ? If so, let it deal with
+ * this.
+ */
+ if (cmpxchg(&node->stolen, 0, 1) != 0)
+ goto error;
+ }
/* Found it ! pointer to object is in "prev" */
if (rcu_cmpxchg_pointer(prev, node, node->next) == node)
/* Found it ! pointer to object is in "prev" */
if (rcu_cmpxchg_pointer(prev, node, node->next) == node)