xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* gfn_lock() seems useless.
@ 2016-02-02  6:54 Zhangbo (Oscar)
  2016-02-02 16:26 ` Jan Beulich
  0 siblings, 1 reply; 4+ messages in thread
From: Zhangbo (Oscar) @ 2016-02-02  6:54 UTC (permalink / raw)
  To: andres@lagarcavilla.org, xen-devel@lists.xen.org
  Cc: Herongguang (Stephen), Linqiangmin, Huangpeng (Peter),
	Wangyufei (James)

Hi all:
In patch e1e40bccee7490a01ac7d1f759ec2bbafd3c7185, it says that"many routines can logically assert holding the p2m *FOR A SPECIFIC GFN.*" , 
But I find out that it did nothing for locking a single gfn, in fact  it still locked the entire p2m list. 

-#define p2m_lock_recursive(p) mm_lock_recursive(p2m, &(p)->lock)
+#define gfn_lock(p,g,o)       mm_lock_recursive(p2m, &(p)->lock)  //'g' is not used. The entire p2m list is locked.


Do we have any plan to lock a specific gfn? If so, how ? If not, shall we redefine the macro? 

Thans.

Oscar.

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

end of thread, other threads:[~2016-02-03 15:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-02  6:54 gfn_lock() seems useless Zhangbo (Oscar)
2016-02-02 16:26 ` Jan Beulich
2016-02-03  4:55   ` Andres Lagar Cavilla
2016-02-03 15:01     ` Konrad Rzeszutek Wilk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).