All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@hp.com>
To: xen-devel@lists.xensource.com
Cc: xen-staging@lists.xensource.com
Subject: [PATCH] Re: [Xen-staging] [xen-unstable] Dynamic grant-table sizing.
Date: Thu, 15 Feb 2007 08:32:07 -0700	[thread overview]
Message-ID: <1171553527.5373.92.camel@bling> (raw)
In-Reply-To: <200702151056.l1FAuI07000397@latara.uk.xensource.com>

On Thu, 2007-02-15 at 10:56 +0000, Xen staging patchbot-unstable wrote:
> diff -r 047b3e9f9032 -r 70f05d642a2e xen/arch/ia64/xen/mm.c
> --- a/xen/arch/ia64/xen/mm.c	Thu Feb 15 10:34:21 2007 +0000
> +++ b/xen/arch/ia64/xen/mm.c	Thu Feb 15 10:54:12 2007 +0000
> @@ -2077,8 +2077,10 @@ arch_memory_op(int op, XEN_GUEST_HANDLE(
>                  mfn = virt_to_mfn(d->shared_info);
>              break;
>          case XENMAPSPACE_grant_table:
> -            if (xatp.idx < NR_GRANT_FRAMES)
> +            spin_lock(d->grant_table->lock);
> +            if ( xatp.idx < nr_grant_frames(d->grant_table) )
>                  mfn = virt_to_mfn(d->grant_table->shared) + xatp.idx;
> +            spin_unlock(d->grant_table->lock);

Typo fix, spin_lock needs a pointer.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
---

diff -r 5916fc1f9b16 xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c	Thu Feb 15 14:58:43 2007 +0000
+++ b/xen/arch/ia64/xen/mm.c	Thu Feb 15 08:22:16 2007 -0700
@@ -2077,10 +2077,10 @@ arch_memory_op(int op, XEN_GUEST_HANDLE(
                 mfn = virt_to_mfn(d->shared_info);
             break;
         case XENMAPSPACE_grant_table:
-            spin_lock(d->grant_table->lock);
-            if ( xatp.idx < nr_grant_frames(d->grant_table) )
+            spin_lock(&d->grant_table->lock);
+            if (xatp.idx < nr_grant_frames(d->grant_table))
                 mfn = virt_to_mfn(d->grant_table->shared) + xatp.idx;
-            spin_unlock(d->grant_table->lock);
+            spin_unlock(&d->grant_table->lock);
             break;
         default:
             break;

           reply	other threads:[~2007-02-15 15:32 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <200702151056.l1FAuI07000397@latara.uk.xensource.com>]

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=1171553527.5373.92.camel@bling \
    --to=alex.williamson@hp.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-staging@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.