mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Clayton <andrew@digital-domain.net>
To: Jiri Kosina <jkosina@suse.cz>
Cc: Rik van Riel <riel@redhat.com>, Gleb Natapov <gleb@redhat.com>,
	kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
	Ingo Molnar <mingo@kernel.org>
Subject: Re: qemu-kvm hangs at start up under 3.8.0-rc3-00074-gb719f43 (works with CONFIG_LOCKDEP)
Date: Tue, 15 Jan 2013 19:01:12 +0000	[thread overview]
Message-ID: <20130115190112.6f171c54@omega.digital-domain.net> (raw)
In-Reply-To: <alpine.LNX.2.00.1301151939400.14538@pobox.suse.cz>

On Tue, 15 Jan 2013 19:41:32 +0100 (CET), Jiri Kosina wrote:

[snip]

> Could you please try the patch below and report backt? Thanks.
> 
> 
> 
> From: Jiri Kosina <jkosina@suse.cz>
> Subject: [PATCH] lockdep, rwsem: fix down_write_nest_lock()
> if !CONFIG_DEBUG_LOCK_ALLOC
> 
> Commit 1b963c81b1 ("lockdep, rwsem: provide down_write_nest_lock()") 
> contains a bug in a codepath when CONFIG_DEBUG_LOCK_ALLOC is
> disabled, which causes down_read() to be called instead of
> down_write() by mistake on such configurations. Fix that.
> 
> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
> ---
>  include/linux/rwsem.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/include/linux/rwsem.h b/include/linux/rwsem.h
> index 413cc11..8da67d6 100644
> --- a/include/linux/rwsem.h
> +++ b/include/linux/rwsem.h
> @@ -135,7 +135,7 @@ do
> {								\ 
>  #else
>  # define down_read_nested(sem, subclass)
> down_read(sem) -# define down_write_nest_lock(sem, nest_lock)
> down_read(sem) +# define down_write_nest_lock(sem, nest_lock)
> down_write(sem) # define down_write_nested(sem, subclass)
> down_write(sem) #endif
>  

Heh, indeed, that fix's it.

Tested-by: Andrew Clayton <andrew@digital-domain.net>

Cheers,
Andrew

      reply	other threads:[~2013-01-15 19:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-13 22:29 Andrew Clayton
2013-01-14 13:27 ` Gleb Natapov
2013-01-14 18:24   ` Andrew Clayton
2013-01-14 18:57     ` Gleb Natapov
2013-01-15 16:48     ` Rik van Riel
2013-01-15 17:17       ` Andrew Clayton
2013-01-15 18:40         ` Andrew Clayton
2013-01-15 18:41         ` Jiri Kosina
2013-01-15 19:01           ` Andrew Clayton [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=20130115190112.6f171c54@omega.digital-domain.net \
    --to=andrew@digital-domain.net \
    --cc=gleb@redhat.com \
    --cc=jkosina@suse.cz \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=riel@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®