20 Jun
2016
20 Jun
'16
1 p.m.
On Mon, Jun 20, 2016 at 09:51:28AM +0800, John Hsu wrote:
Is it better to separate this function to two case, one locked with timeout and the other not? Do you have any suggestion about it? Thank you.
It should return the error code and the callers should handle it. We always have to know if we have the lock or not.
regards, dan carpenter