From: Arun Sharma <arun.sharma@intel.com>
To: xen-devel@lists.xensource.com
Cc: "Ling, Xiaofeng" <xiaofeng.ling@intel.com>
Subject: Should shadow_lock be spin_lock_recursive?
Date: Wed, 11 May 2005 10:42:54 -0700 [thread overview]
Message-ID: <4282441E.6080900@intel.com> (raw)
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
next reply other threads:[~2005-05-11 17:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-11 17:42 Arun Sharma [this message]
2005-05-12 1:57 ` Should shadow_lock be spin_lock_recursive? Xiaofeng Ling
2005-05-12 7:57 ` Keir Fraser
2005-05-12 12:59 ` Michael A Fetterman
2005-05-13 22:40 ` Arun Sharma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4282441E.6080900@intel.com \
--to=arun.sharma@intel.com \
--cc=xen-devel@lists.xensource.com \
--cc=xiaofeng.ling@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.