All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@suse.de>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: Xen devel list <xen-devel@lists.xensource.com>
Subject: Re: [patch 6/6] netif_release_rx_bufs
Date: Fri, 18 Aug 2006 08:43:06 +0200	[thread overview]
Message-ID: <44E5617A.20003@suse.de> (raw)
In-Reply-To: <C10A4FDF.103B%Keir.Fraser@cl.cam.ac.uk>

Keir Fraser wrote:
> 
>> How can I do that?  gnttab_end_foreign_transfer_ref() doesn't cut it, it
>> will not succeed unconditionally ...
> 
> The function will not spin unboundedly and, when it returns, the grant is
> definitely no longer active. If any page was transferred via the grant, it
> is returned to the caller (else zero is returned). It does just what you
> need.

Oh, ok.  I assumed zero return means it failed.  Guess I just have to
keep track of the original mfns so I can map them back into the address
space in case no page was transfered, right?

cheers,
  Gerd

-- 
Gerd Hoffmann <kraxel@suse.de>
http://www.suse.de/~kraxel/julika-dora.jpeg

  reply	other threads:[~2006-08-18  6:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-17 14:13 [patch 6/6] netif_release_rx_bufs Gerd Hoffmann
2006-08-17 15:04 ` Keir Fraser
2006-08-17 15:13   ` Gerd Hoffmann
2006-08-17 15:54     ` Keir Fraser
2006-08-18  6:43       ` Gerd Hoffmann [this message]
2006-08-18  8:54         ` Keir Fraser
2006-08-18 11:34           ` Gerd Hoffmann
2006-08-18 12:25             ` Keir Fraser
2006-08-18 12:41               ` Gerd Hoffmann

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=44E5617A.20003@suse.de \
    --to=kraxel@suse.de \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=xen-devel@lists.xensource.com \
    /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.