| To: | Masayuki Saito <m-saito@xxxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 1/2] Add new spin_lock for i_flags of xfs_inode [try #2] |
| From: | Nathan Scott <nathans@xxxxxxx> |
| Date: | Thu, 24 Aug 2006 15:42:45 +1000 |
| Cc: | David Chinner <dgc@xxxxxxx>, xfs@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx |
| In-reply-to: | <20060823213817.16cdfe8a.akpm@osdl.org>; from akpm@osdl.org on Wed, Aug 23, 2006 at 09:38:17PM -0700 |
| References: | <20060823201251m-saito@mail.aom.tnes.nec.co.jp> <20060823213817.16cdfe8a.akpm@osdl.org> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.2.5i |
On Wed, Aug 23, 2006 at 09:38:17PM -0700, Andrew Morton wrote: > On Wed, 23 Aug 2006 20:12:51 +0900 > Masayuki Saito <m-saito@xxxxxxxxxxxxxx> wrote: > > > It is the problem that i_flags of xfs_inode has no consistent > > locking protection. > > > > For the reason, I define a new spin_lock(i_flags_lock) for i_flags > > of xfs_inode. And I add this spin_lock for appropriate places. > > You could simply use inode.i_lock for this. i_lock is a general-purpose > per-inode lock. Its mandate is "use it for whatever you like, but it must > always be `innermost'" Sounds spot on for our needs here, and has the added benefit of not increasing the size of the inode (as well as not adding to our locking complexity). Thanks! cheers. -- Nathan |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Infinite loop in xfssyncd on full file system, David Chinner |
|---|---|
| Next by Date: | Re: [PATCH 1/2] Add new spin_lock for i_flags of xfs_inode [try #2], Nathan Scott |
| Previous by Thread: | Re: [PATCH 1/2] Add new spin_lock for i_flags of xfs_inode [try #2], Andrew Morton |
| Next by Thread: | Re: [PATCH 1/2] Add new spin_lock for i_flags of xfs_inode [try #2], Nathan Scott |
| Indexes: | [Date] [Thread] [Top] [All Lists] |