public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] After server stop nfslock service, client still can get lock success
@ 2009-11-17  9:47 Mi Jinlong
  2009-11-17 15:34 ` Chuck Lever
  0 siblings, 1 reply; 6+ messages in thread
From: Mi Jinlong @ 2009-11-17  9:47 UTC (permalink / raw)
  To: Trond.Myklebust, NFSv3 list, J. Bruce Fields

When testing NLM, i find a bug.
After server stop nfslock service, client still can get lock success

Test process:

  Step1: client open nfs file.
  Step2: client using fcntl to get lock.
  Step3: client using fcntl to release lock.
  Step4: service stop it's nfslock service.
  Step5: client using fcntl to get lock again.

At step5, client should get lock fail, but it's success.

Reason:
  When server stop nfslock service, client's host struct not be
  unmonitor at server. When client get lock again, the client's
  host struct will be reuse but don't monitor again. 
  So that, at step5 client can get lock success.

Question:
  1. Should unmonitor the client's host struct at server 
     when server stop nfslock service ?

  2. Whether let rpc.statd tell kernel it's status(when start and stop)
     by send a SM_NOTIFY ?

-- 
Regards
Mi Jinlong



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

end of thread, other threads:[~2009-11-19 15:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-17  9:47 [RFC] After server stop nfslock service, client still can get lock success Mi Jinlong
2009-11-17 15:34 ` Chuck Lever
2009-11-18  9:50   ` Mi Jinlong
2009-11-18 17:03     ` Chuck Lever
2009-11-19  9:48       ` Mi Jinlong
2009-11-19 15:41         ` Chuck Lever

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