[Drbd-dev] Crash in lru_cache.c

Graham, Simon Simon.Graham at stratus.com
Sun Jan 13 00:37:47 CET 2008


> sure I can have requests there, but they are not yet completed to
upper
> layers.  if they are, their correponding barrier will have been send
> out
> already.
> 
> for attach, we would then do
>   block new incomming request
>   wait for ap count to reach zero
>   [in current code, send out a barrier now;
>    with the idea outline above, there is no need for that]
>   wait for the lates barrier ack
>       (tl now empty)
>   attach
>   unblock
> 
> am I still missing something?

I think that works. 

What's the appropriate mechanism for blocking new requests? There are
existing mechanisms based on locking the AL cache entry, but since there
is no AL at this time, we cant use that...

Thanks for the ideas!
Simon


More information about the drbd-dev mailing list