From: Greg KH <greg@kroah.com>
To: Maneesh Soni <maneesh@in.ibm.com>
Cc: Alan Stern <stern@rowland.harvard.edu>,
Kernel development list <linux-kernel@vger.kernel.org>,
Patrick Mochel <mochel@digitalimplant.org>,
Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Subject: Re: Inconsistency in sysfs behavior?
Date: Thu, 8 Jan 2004 12:19:20 -0800 [thread overview]
Message-ID: <20040108201920.GB16183@kroah.com> (raw)
In-Reply-To: <20040108103242.GA2267@in.ibm.com>
On Thu, Jan 08, 2004 at 04:02:42PM +0530, Maneesh Soni wrote:
>
> The problem is that we have live references to the kobject dentry but
> kobject is gone. Problems can occur if kobject is accessed
> through dentry->d_fsdata field. The fix I did was to take a ref. to the
> kobject while linking the dentry with the kobject in create_dir(). This
> ref. can be released when dentry ref. count goes to zero, that is when
> dentry is being freed, through dentry->d_op->d_iput() call. With this
> patch we can have a kobject alive during the life time of the corresponding
> dentry.
>
> Please comment.
This is the patch already in the -mm tree, right? I think it's already
in Pat's pending queue of patches to send off (we're a bit hampered by
the weather right now in this part of the world...)
thanks,
greg k-h
next prev parent reply other threads:[~2004-01-08 20:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-07 15:48 Alan Stern
2004-01-07 17:27 ` Greg KH
2004-01-07 21:50 ` Alan Stern
2004-01-07 21:56 ` Greg KH
2004-01-07 22:24 ` Alan Stern
2004-01-07 22:34 ` Greg KH
2004-01-08 10:32 ` Maneesh Soni
2004-01-08 20:19 ` Greg KH [this message]
2004-01-09 4:56 ` Maneesh Soni
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=20040108201920.GB16183@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maneesh@in.ibm.com \
--cc=mochel@digitalimplant.org \
--cc=stern@rowland.harvard.edu \
--cc=viro@parcelfarce.linux.theplanet.co.uk \
/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
Powered by JetHome