All of lore.kernel.org
 help / color / mirror / Atom feed
* Should shadow_lock be spin_lock_recursive?
@ 2005-05-11 17:42 Arun Sharma
  2005-05-12  1:57 ` Xiaofeng Ling
  0 siblings, 1 reply; 5+ messages in thread
From: Arun Sharma @ 2005-05-11 17:42 UTC (permalink / raw)
  To: xen-devel; +Cc: Ling, Xiaofeng


During our testing, we found this code path where xen attempts to grab 
the shadow_lock, while holding it - leading to a deadlock.

 >> free_dom_mem->
 >> shadow_sync_and_drop_references->
 >> shadow_lock -> ..................... first lock
 >> shadow_remove_all_access->
 >> remove_all_access_in_page->
 >> put_page->
 >> free_domheap_pages->
 >> shadow_drop_references->
 >> shadow_lock -> ..................... second lock

Questions:

- should shadow lock be recursive?
- is shadow lock too coarse grained? It seems to have led to a lot of 
code refactoring (__foo without lock and foo with lock). But there may 
be more such instances we haven't found yet.

	-Arun

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-13 22:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-11 17:42 Should shadow_lock be spin_lock_recursive? Arun Sharma
2005-05-12  1:57 ` Xiaofeng Ling
2005-05-12  7:57   ` Keir Fraser
2005-05-12 12:59   ` Michael A Fetterman
2005-05-13 22:40     ` Arun Sharma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.