tmem: drop unnecessary lock in tmem_relinquish_pages()
authorBob Liu <bob.liu@oracle.com>
Fri, 2 May 2014 09:46:09 +0000 (11:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 May 2014 09:46:09 +0000 (11:46 +0200)
commit427f62f1804efb0c0ddd0c14b1ca8661292f8b70
tree11527aa9880d467fe231bdfb4cd4cf15ffe82ed4
parentc25c52e3f779706d3658b75627e665f88c6e79e2
tmem: drop unnecessary lock in tmem_relinquish_pages()

CID 1150562

tmem_rwlock is unnecessary in tmem_relinquish_pages(), as
such lock is used as gate for hypercalls. However
tmem_relinquish_pages deals with pages that are no longer
owned by any domain - hence there is no need for tmem_rwlock.

Also the function is protected by the 'heap_lock' which
is the only calleer of this function.

This patch drops said lock.

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/tmem.c