From: Andrew Morton <akpm@osdl.org>
To: rweight@us.ibm.com
Cc: dev@sw.ru, linux-kernel@vger.kernel.org
Subject: Re: RFC: Bug in generic_forget_inode() ?
Date: Fri, 18 Mar 2005 14:17:16 -0800 [thread overview]
Message-ID: <20050318141716.494ab02a.akpm@osdl.org> (raw)
In-Reply-To: <1111183051.7102.33.camel@russw.beaverton.ibm.com>
Russ Weight <rweight@us.ibm.com> wrote:
>
> generic_forget_inode() is eventually called (within the context of
> iput), the inode is placed on the unused list, and the inode_lock is
> dropped.
>
> kswapd calls prune_icache(), locks the inode_lock, and pulls the same
> inode off of the unused list. Upon completion, prune_icache() calls
> dispose_list() for the inodes that it has collected.
>
> generic_forget_inode() calls write_inode_now(), which calls
> __writeback_single_inode() which calls __sync_single_inode().
> __sync_single_inode() panics when attempting to move the inode onto the
> unused list (the last call to list_move). This is due to the poison
> values that were previously loaded into the next and prev list pointers
> by list_del().
It's not clear what the actual bug is here. When you say that
__sync_single_inode() panics over the list pointers, who was it that
poisoned them? dispose_list()?
Certainly isofs_fill_super() could trivially be rewritten to not do the
iget()/iput() but we should be sure that that's really the bug. The inode
lifetime management is rather messy, I'm afraid.
next prev parent reply other threads:[~2005-03-18 22:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-18 21:57 Russ Weight
2005-03-18 22:17 ` Andrew Morton [this message]
2005-03-18 23:57 ` Russ Weight
2005-03-19 0:11 ` Andrew Morton
2005-03-30 19:54 ` Russ Weight
2005-03-19 0:16 ` Herbert Xu
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=20050318141716.494ab02a.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=dev@sw.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=rweight@us.ibm.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®