qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC] O_EXCL or not open block device
@ 2013-09-12 11:27 Jack Wang
  2013-09-12 13:58 ` Stefan Hajnoczi
  0 siblings, 1 reply; 6+ messages in thread
From: Jack Wang @ 2013-09-12 11:27 UTC (permalink / raw)
  To: Dongsu Park, qemu-devel; +Cc: kwolf, Paolo Bonzini, NeilBrown, Stefan Hajnoczi

Hi all,

We're using qemu export md-raid to guest OS, and we saw deadlock on
MD(which is already fixed by Neil), please see thread below:
> http://marc.info/?l=linux-raid&m=137894040228125&w=2

As Neil suggested it would be good for userspace applications to call
open() with O_EXCL flag, to avoid such MD hanging problems at the begining.

And we checked qemu, it looks it doesn't include O_EXCL flag when open
block device.

After search in the mail list we found there are a similar discussion:

https://lists.nongnu.org/archive/html/qemu-devel/2011-04/msg00722.html

> To O_EXCL or not to O_EXCL open host_cdrom

Which looks prefer enable O_EXCL, but I checked latest qemu tree, there
no such code, could anyone give comments on this?

Best regards,
Jack

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

end of thread, other threads:[~2013-09-13  7:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-12 11:27 [Qemu-devel] [RFC] O_EXCL or not open block device Jack Wang
2013-09-12 13:58 ` Stefan Hajnoczi
2013-09-12 14:27   ` Kevin Wolf
2013-09-12 15:57     ` Jack Wang
2013-09-12 22:48     ` NeilBrown
2013-09-13  7:16       ` Paolo Bonzini

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).