Giving a VFS a chance to be told that an oplock break is occurring

Richard Sharpe realrichardsharpe at gmail.com
Tue Mar 27 20:51:09 MDT 2012


On Tue, Mar 27, 2012 at 5:09 PM, Jeremy Allison <jra at samba.org> wrote:
> On Tue, Mar 27, 2012 at 11:16:44AM -0700, Richard Sharpe wrote:
>> Hi Jeremy,
>>
>> I have looked in the v3.5.x and V3.6.x and the master branch to see if
>> the following is possible.
>>
>> There are cases, I believe, where a VFS writer will want to cache data
>> in structures maintained by the VFS. However, if they do that they
>> need to know that certain breaks have occured so they can
>> flush/invalidate their cache etc.
>>
>> It would be useful if VFS routines could register a function that
>> should be called when a break is happening.
>>
>> Do you think that is something we could work on together or that we
>> should ask the wider Samba community?
>
> Definitely widen out to samba-technical... I'm CC:ing vl on the
> reply for his thoughts, I know he's spent more time thinking about
> async issues in the VFS than I have.

If you are doing read-ahead or write-behind in a VFS module and an
oplock break occurs then you need to know about it, it seems to me,
either to invalidate or flush ...

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)


More information about the samba-technical mailing list