All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: xen/p2m: m2p_find_override: use list_for_each_entry_safe
@ 2012-04-20 10:51 Dan Carpenter
  2012-04-20 11:23 ` Stefano Stabellini
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Carpenter @ 2012-04-20 10:51 UTC (permalink / raw)
  To: stefano.stabellini; +Cc: xen-devel, Konrad Rzeszutek Wilk

Hi Stefano,

I had a question about 8f2854c74ff4: "xen/p2m: m2p_find_override: use
list_for_each_entry_safe".

I think there is a misunderstanding about what the
list_for_each_entry_safe() macro does.  It has nothing to do with
locking, so the spinlock is still needed.  Without the lock ->next could
point to an element which has been deleted in another thread.  Probably
the patch should be reverted.

Also, it introduces a GCC warning:
arch/x86/xen/p2m.c:811:16: warning: unused variable ‘flags’
	[-Wunused-variable]

regards,
dan carpenter


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2012-04-20 16:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-20 10:51 xen/p2m: m2p_find_override: use list_for_each_entry_safe Dan Carpenter
2012-04-20 11:23 ` Stefano Stabellini
2012-04-20 11:35   ` Dan Carpenter
2012-04-20 13:36     ` Stefano Stabellini
2012-04-20 16:01       ` Konrad Rzeszutek Wilk

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.