[OpenAFS-devel] flock Input/output error

Simon Wilkinson sxw@inf.ed.ac.uk
Thu, 12 Aug 2010 14:45:59 +0100


On 12 Aug 2010, at 14:43, Hans-Werner Paulsen wrote:
> Isn't possible to do ReleaseKernelLock first, and then ReleaseAFSLock =
on
> unlock?

If ReleaseAFSLock fails for some reason, we don't want to release the =
kernel lock. Releasing it, only to reobtain it, is racy. I'm pretty sure =
that the correct solution here is to hold the vcache lock across the =
calls - I'll hopefully get a chance to look at some code to do this =
today.

Cheers,

Simon.