* Modular filesystem using drop_inode would need inode_lock
@ 2004-07-09 21:43 Luck, Tony
2004-07-09 21:50 ` Christoph Hellwig
2004-07-09 22:06 ` Christoph Hellwig
0 siblings, 2 replies; 4+ messages in thread
From: Luck, Tony @ 2004-07-09 21:43 UTC (permalink / raw)
To: linux-kernel
This is mostly a logical inconsistency at the moment (since the
only filesystem that has a "drop_inode" function defined in its
super_operations is hugetlbfs, and it is unlikely to move out of
the kernel and into a module). But the ->drop_inode() function
is called with inode_lock held, and it is expected to drop the
lock ... which would be impossible for a module as the lock is
not exported.
Signed-off-by: <tony.luck@intel.com>
--- old/fs/inode.c 2004-07-09 14:05:16.986225857 -0700
+++ new/fs/inode.c 2004-07-09 14:05:42.198492986 -0700
@@ -81,6 +81,7 @@
* the i_state of an inode while it is in use..
*/
spinlock_t inode_lock = SPIN_LOCK_UNLOCKED;
+EXPORT_SYMBOL(inode_lock);
/*
* iprune_sem provides exclusion between the kswapd or
try_to_free_pages
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Modular filesystem using drop_inode would need inode_lock
2004-07-09 21:43 Modular filesystem using drop_inode would need inode_lock Luck, Tony
@ 2004-07-09 21:50 ` Christoph Hellwig
2004-07-09 22:06 ` Christoph Hellwig
1 sibling, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2004-07-09 21:50 UTC (permalink / raw)
To: Luck, Tony; +Cc: linux-kernel
On Fri, Jul 09, 2004 at 02:43:32PM -0700, Luck, Tony wrote:
> This is mostly a logical inconsistency at the moment (since the
> only filesystem that has a "drop_inode" function defined in its
> super_operations is hugetlbfs, and it is unlikely to move out of
> the kernel and into a module). But the ->drop_inode() function
> is called with inode_lock held, and it is expected to drop the
> lock ... which would be impossible for a module as the lock is
> not exported.
->drop_inode is a bad idea anyway. Please send a pointer to your
filesystem so we can fix it.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Modular filesystem using drop_inode would need inode_lock
2004-07-09 21:43 Modular filesystem using drop_inode would need inode_lock Luck, Tony
2004-07-09 21:50 ` Christoph Hellwig
@ 2004-07-09 22:06 ` Christoph Hellwig
2004-09-20 1:18 ` William Lee Irwin III
1 sibling, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2004-07-09 22:06 UTC (permalink / raw)
To: Luck, Tony; +Cc: linux-kernel
On Fri, Jul 09, 2004 at 02:43:32PM -0700, Luck, Tony wrote:
> This is mostly a logical inconsistency at the moment (since the
> only filesystem that has a "drop_inode" function defined in its
> super_operations is hugetlbfs, and it is unlikely to move out of
And btw, ->drop_inode usage in hugetlbfs is also a really bad idea,
it's duplicating large parts of fs/inode.c and is already missing
all kinds of updates.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Modular filesystem using drop_inode would need inode_lock
2004-07-09 22:06 ` Christoph Hellwig
@ 2004-09-20 1:18 ` William Lee Irwin III
0 siblings, 0 replies; 4+ messages in thread
From: William Lee Irwin III @ 2004-09-20 1:18 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Luck, Tony, linux-kernel
On Fri, Jul 09, 2004 at 02:43:32PM -0700, Luck, Tony wrote:
>> This is mostly a logical inconsistency at the moment (since the
>> only filesystem that has a "drop_inode" function defined in its
>> super_operations is hugetlbfs, and it is unlikely to move out of
On Fri, Jul 09, 2004 at 11:06:44PM +0100, Christoph Hellwig wrote:
> And btw, ->drop_inode usage in hugetlbfs is also a really bad idea,
> it's duplicating large parts of fs/inode.c and is already missing
> all kinds of updates.
I suppose this reply is a bit late, but...
I'd be happy to hear of alternative methods of dealing with hugetlbfs'
operational constraints. The unusability of the core VM function
truncate_inode_pages() on hugetlb pagecache was IIRC be the primary
reason for it, but there also appears to be some inode management going
on there now that it's been disturbed by someone else.
-- wli
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-09-20 1:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-09 21:43 Modular filesystem using drop_inode would need inode_lock Luck, Tony
2004-07-09 21:50 ` Christoph Hellwig
2004-07-09 22:06 ` Christoph Hellwig
2004-09-20 1:18 ` William Lee Irwin III
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