Manipulating the obj-> structures requires us to hold the
pool->rwlock lock. Lets make that obvious in this function to
catch any errant users (none found, but we may in future).
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
struct rb_node **new, *parent = NULL;
struct tmem_object_root *this;
+ ASSERT(obj->pool);
+ ASSERT_WRITELOCK(&obj->pool->pool_rwlock);
+
new = &(root->rb_node);
while ( *new )
{