From: David Chinner <dgc@sgi.com>
To: kanishk rastogi <kanishk.85@gmail.com>
Cc: xfs@oss.sgi.com
Subject: Re: Need of inode->i_mutex in xfs_write()
Date: Fri, 24 Aug 2007 08:51:11 +1000 [thread overview]
Message-ID: <20070823225111.GW72985246@sgi.com> (raw)
In-Reply-To: <9ee2fe770708210826n5952e727od0df16a5a7b267f0@mail.gmail.com>
On Tue, Aug 21, 2007 at 09:11:56PM +0545, kanishk rastogi wrote:
> I was looking at the xfs_write code path in kernel 2.6.20 .......
> I saw it acquiring inode->i_mutex .
> Whats the need ?
> What are we safegaurding inode for.
See Documentation/filesystems/Locking and other files in that
directory for what i_mutex is supposed to protect.
XFS is different as it has it's own inodes and inode locks, but
it still mostly uses i_mutex inteh accepted way.
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
next prev parent reply other threads:[~2007-08-23 22:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-21 15:26 Need of inode->i_mutex in xfs_write() kanishk rastogi
2007-08-23 22:51 ` David Chinner [this message]
2007-09-07 5:43 ` kanishk rastogi
2007-09-07 12:15 ` David Chinner
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=20070823225111.GW72985246@sgi.com \
--to=dgc@sgi.com \
--cc=kanishk.85@gmail.com \
--cc=xfs@oss.sgi.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