All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Vrabel <david.vrabel@citrix.com>
To: Iurii Konovalenko <iurii.konovalenko@globallogic.com>,
	Ian Campbell <ian.campbell@citrix.com>
Cc: Embedded-pv-devel@lists.xenproject.org,
	"Boris Ostrovsky" <boris.ostrovsky@oracle.com>,
	xen-devel <xen-devel@lists.xen.org>,
	"David Vrabel" <david.vrabel@citrix.com>,
	"Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
Subject: Re: Deadlock in /proc/xen/xenbus watch+read on 3.17+ (maybe earlier)
Date: Thu, 19 Mar 2015 13:00:51 +0000	[thread overview]
Message-ID: <550AC883.40008@citrix.com> (raw)
In-Reply-To: <CABc08zJ7Sf7XBwqKT0NBKitUZ+6BNMBQcqyTbNJK8n0v5+h=ew@mail.gmail.com>

On 19/03/15 12:10, Iurii Konovalenko wrote:
> Hi, guys!
> 
> When I read, that I am not alone and that issue depends on kernel
> version, I decided to continue investigation.
> And I found why our threads locks on read/write operations.
> On Linux kernel 3.14+ syscalls of file read and write changed a bit:
> fdget() function was replaced by fdget_pos() - it is fdget() function
> plus additional position mutex lock for files with FMODE_ATOMIC_POS
> (files for inodes with S_IFREG flag set - regular nodes). As I thought
> our xen files are not regular and nonseekable, I hoped this flag is
> not set. But it is set. It is because our file system is created by
> function simple_fill_super(), and inside it this flag is hardly set:
> inode->i_mode = S_IFREG | files->mode;
> So, as a fast hack I made a patch: just made copy of this function for
> xen, which does not set this flag. It works for me. Could you please
> check if it works for you.

I still can't get this to deadlock, but why not clear FMODE_ATOMIC_POS
in xenbus_file_open() ?

David

  parent reply	other threads:[~2015-03-19 13:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-19  1:19 Deadlock in /proc/xen/xenbus watch+read on 3.17+ (maybe earlier) Marek Marczykowski-Górecki
2015-03-19 10:38 ` Ian Campbell
2015-03-19 12:10   ` Iurii Konovalenko
2015-03-19 12:32     ` [Embedded-pv-devel] " Vitaly Chernooky
2015-03-19 13:00     ` David Vrabel [this message]
2015-03-19 13:10       ` Vitaly Chernooky
2015-03-20  4:04         ` Marek Marczykowski-Górecki
2015-03-20  9:58           ` Vitaly Chernooky
2015-03-20 10:08           ` Vitaly Chernooky
2015-03-20 10:38             ` Vitaly Chernooky
2015-03-20 10:46               ` David Vrabel
2015-03-20 11:39                 ` Vitaly Chernooky
2015-03-20 10:41             ` Marek Marczykowski-Górecki
2015-03-19 11:10 ` David Vrabel

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=550AC883.40008@citrix.com \
    --to=david.vrabel@citrix.com \
    --cc=Embedded-pv-devel@lists.xenproject.org \
    --cc=boris.ostrovsky@oracle.com \
    --cc=ian.campbell@citrix.com \
    --cc=iurii.konovalenko@globallogic.com \
    --cc=marmarek@invisiblethingslab.com \
    --cc=xen-devel@lists.xen.org \
    /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.