dlm: limit dir lookup loop
authorDavid Teigland <teigland@redhat.com>
Wed, 9 Jan 2008 16:37:39 +0000 (10:37 -0600)
committerDavid Teigland <teigland@redhat.com>
Wed, 30 Jan 2008 17:04:42 +0000 (11:04 -0600)
commit755b5eb8bac90b35dc901465a06081aaad94e9ae
tree95fcee45218437aa2fbc17642feece9310f25abe
parent42dc1601a9a31e8da767a4a9c37bad844b3698ab
dlm: limit dir lookup loop

In a rare case we may need to repeat a local resource directory lookup
due to a race with removing the rsb and removing the resdir record.
We'll never need to do more than a single additional lookup, though,
so the infinite loop around the lookup can be removed.  In addition
to being unnecessary, the infinite loop is dangerous since some other
unknown condition may appear causing the loop to never break.

Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lock.c