Whamcloud - gitweb
The old patch was failing because sometimes the inodes were gone by the time
authorpschwan <pschwan>
Tue, 24 Sep 2002 20:04:00 +0000 (20:04 +0000)
committerpschwan <pschwan>
Tue, 24 Sep 2002 20:04:00 +0000 (20:04 +0000)
commit217923708d5947a2145cfbee7568d32da7e362e6
treec8eb5553d76b1367699518ba66fc3f4feb731e1a
parent6160eabec971a3d67230b86cc55a9734bb298ef2
The old patch was failing because sometimes the inodes were gone by the time
the callback was called with CB_DYING.  I also realized that the client would
believe that it had valid data for too long.

Instead of an extra callback when the lock is freed, I moved that extra
callback to just before we cancel the lock.  Because there's two paths for that
now (cancelling with server notification and cancelling without), I had to
introduce _another_ l_flag, which indicates whether we've done this call.  Oh
well.  It works much better now.
lustre/include/linux/lustre_dlm.h
lustre/include/linux/lustre_lite.h
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_request.c
lustre/ldlm/ldlm_test.c
lustre/llite/file.c
lustre/mdc/mdc_request.c
lustre/mds/handler.c