LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Jiri Kosina <jkosina@suse.cz>
To: Jiri Olsa <olsajiri@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
Nadia Derbey <Nadia.Derbey@bull.net>,
peifferp@gmail.com
Subject: Re: [BUG] soft lockup detected with ipcs
Date: Sun, 2 Mar 2008 22:26:06 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.64.0803022223360.15209@jikos.suse.cz> (raw)
In-Reply-To: <Pine.LNX.4.64.0803022214190.15209@jikos.suse.cz>
On Sun, 2 Mar 2008, Jiri Kosina wrote:
> Could you please try what is the output with the attached patch below, so
> that we know which spinlock buggers?
Uhm, and hereby I attach the patch.
diff --git a/ipc/shm.c b/ipc/shm.c
index c47e872..2abfb70 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -615,6 +615,7 @@ static void shm_get_stat(struct ipc_namespace *ns, unsigned long *rss,
*rss += (HPAGE_SIZE/PAGE_SIZE)*mapping->nrpages;
} else {
struct shmem_inode_info *info = SHMEM_I(inode);
+ printk(KERN_DEBUG "info: %p\n", info);
spin_lock(&info->lock);
*rss += inode->i_mapping->nrpages;
*swp += info->swapped;
diff --git a/ipc/util.c b/ipc/util.c
index fd1b50d..5a0d4d2 100644
--- a/ipc/util.c
+++ b/ipc/util.c
@@ -662,6 +662,7 @@ struct kern_ipc_perm *ipc_lock(struct ipc_ids *ids, int id)
up_read(&ids->rw_mutex);
+ printk(KERN_DEBUG "out: %p\n", out);
spin_lock(&out->lock);
/* ipc_rmid() may have already freed the ID while ipc_lock
next prev parent reply other threads:[~2008-03-02 21:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-29 10:46 Jiri Olsa
2008-02-29 10:57 ` Andrew Morton
2008-02-29 11:01 ` Jiri Olsa
2008-02-29 11:29 ` Andrew Morton
2008-02-29 11:35 ` Jiri Olsa
2008-02-29 11:43 ` Jiri Kosina
2008-03-02 17:45 ` Jiri Olsa
2008-03-02 20:02 ` Andrew Morton
2008-03-02 21:23 ` Jiri Kosina
2008-03-02 21:26 ` Jiri Kosina [this message]
2008-03-03 12:00 ` Jiri Olsa
2008-03-03 12:06 ` Jiri Kosina
2008-03-03 12:19 ` Jiri Olsa
2008-03-03 12:28 ` Jiri Kosina
2008-03-03 12:38 ` Jiri Olsa
2008-03-03 14:04 ` Jiri Olsa
2008-03-03 14:45 ` Jiri Kosina
2008-03-04 9:56 ` Jiri Olsa
2008-03-04 12:57 ` Jiri Olsa
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=Pine.LNX.4.64.0803022223360.15209@jikos.suse.cz \
--to=jkosina@suse.cz \
--cc=Nadia.Derbey@bull.net \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=olsajiri@gmail.com \
--cc=peifferp@gmail.com \
--subject='Re: [BUG] soft lockup detected with ipcs' \
/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
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).