public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* Problem during implementing NFS support
@ 2008-07-20 19:11 Balaji Rao
  2008-07-20 16:43 ` David Woodhouse
  0 siblings, 1 reply; 6+ messages in thread
From: Balaji Rao @ 2008-07-20 19:11 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Chris Mason

Hi,

There's a problem in btrfs_readdir that tries to lock a root node with one 
being held. This happens when NFS calls vfs_readdir function with a nfs 
specific filldir function pointer. This filldir function, called with the 
lock held calls btrfs_lookup, which tries to take the same lock. So, it keeps 
waiting on lock_page indefinitely - a deadlock. This is not seen if the inode 
is RAM in which case, lookup is not called.

Why can't we allow multiple readers to read a page ?

Please clarify.

Balaji Rao

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-07-21 12:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-20 19:11 Problem during implementing NFS support Balaji Rao
2008-07-20 16:43 ` David Woodhouse
2008-07-20 19:36   ` Balaji Rao
2008-07-20 20:08     ` David Woodhouse
2008-07-21  8:10   ` Christoph Hellwig
2008-07-21 12:58     ` Chris Mason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox