linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Baldyga <r.baldyga@samsung.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>,
	Michal Nazarewicz <mina86@mina86.com>,
	Felipe Balbi <balbi@ti.com>,
	linux-fsdevel@vger.kernel.org
Subject: Re: commit "usb: gadget: ffs: add eventfd notification about ffs events"
Date: Thu, 19 Feb 2015 07:35:25 +0100	[thread overview]
Message-ID: <54E5842D.7080908@samsung.com> (raw)
In-Reply-To: <20150218173639.GA18641@infradead.org>

Hi Christoph,

On 02/18/2015 06:36 PM, Christoph Hellwig wrote:
> Hi Robert,
> 
> your above commit pokes into kiocb internals it really should not, and
> it breaks my patchset that's been on the -fsdevel list which makes most
> of the kiocb guts private to fs/aio.c.
> 
> First please Cc patches like that to linux-fsdevel.  Second I don't
> think the logic in it is correct.  You should not disable your own
> notifications based on how aio works, but do it unconditionally.  What
> was the reason to disable the eventfd notification if there is an aio
> one as well?
> 

Sometimes we would like to have one endpoint handled in separate thread.
It could have its own eventfd, which notifies only about events on its
own requests. We don't want to notify main event loop in main thread
about these events, because it doesn't make sense.

The another example is using AIO hidden under synchronous API to have
timeout feature. We submit AIO transfer with own eventfd, we select() on
this eventfd with given timeout, and if timeout expired we cancel
transfer. Then we don't want to notify main event loop about async
transfer completion, because from users point of view performed
operation looks like synchronous.

Most of requests will be handled using ffs eventfd, but when we supply
another one to selected transfer, we rather don't want to have
notification on the first one.

Robert

      reply	other threads:[~2015-02-19  6:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-18 17:36 commit "usb: gadget: ffs: add eventfd notification about ffs events" Christoph Hellwig
2015-02-19  6:35 ` Robert Baldyga [this message]

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=54E5842D.7080908@samsung.com \
    --to=r.baldyga@samsung.com \
    --cc=balbi@ti.com \
    --cc=hch@infradead.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=mina86@mina86.com \
    --cc=viro@zeniv.linux.org.uk \
    /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 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).