[RFC] After nfs restart, locks can't be recovered which record by lockd before

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

When testing the nfs's lock at NFSv3, I get a problem.
So I want someone help me, thanks!

Test Process:
  Step1, ClientA get an exclusive lock success.
  Step2, Using command "service nfs restart" to restart server's nfs service.
  Step3. ClientB get lock should fail, but success.

I think after step2 (nfs service restart), clientA's lock should be recovered.
But like above, clientA's lock doesn’t be recovered.

When tracing the kernel, I find nfsd will cause lockd stop when it stop.
When lockd stop, all locks will be release which is record before at lockd.

When nfsd start, the lockd will start also, but the statd don't know what happened
 at kernel, so after that, locks will be lost.

Is it right when nfs stop, the lockd will stop too? 
If it's right, should locks be recovered after lockd start?

thanks,
Mi Jinlong


--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux