[GFS2] Fix recursive locking attempt with NFS
authorSteven Whitehouse <swhiteho@redhat.com>
Thu, 25 Jan 2007 17:14:59 +0000 (17:14 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 5 Feb 2007 18:37:53 +0000 (13:37 -0500)
commitd7c103d0bd29c94f78155a4538faf314e49d9713
tree62c453ffe7d6d4637aa93dd43dbb0665175f644c
parentb790c3b7c38aae28c497bb363a6fe72f7c96568f
[GFS2] Fix recursive locking attempt with NFS

In certain cases, its possible for NFS to call the lookup code while
holding the glock (when doing a readdirplus operation) so we need to
check for that and not try and lock the glock twice. This also fixes a
typo in a previous NFS related GFS2 patch.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/inode.c
fs/gfs2/ops_inode.c