fileobj_release: do not notify linux of surplus refs
Surplus refs on the linux side will not change anything, so spare ourselves a message. The final message will free all refs at once when the object is destroyed. Change-Id: Ie086b9dda663729962037c67e8233370509234a5
This commit is contained in:
committed by
Dominique Martinet
parent
eb675818c7
commit
9d587dcbe8
@ -359,7 +359,6 @@ static void fileobj_release(struct memobj *memobj)
|
||||
|
||||
memobj_lock(&obj->memobj);
|
||||
--obj->cref;
|
||||
free_sref = obj->sref - 1; /* surplus sref */
|
||||
if (obj->cref <= 0) {
|
||||
free_sref = obj->sref;
|
||||
free_obj = obj;
|
||||
|
||||
Reference in New Issue
Block a user