[Sheepdog] [PATCH 1/2] sheep: sheep: handle node change event first

Liu Yuan namei.unix at gmail.com
Sun Apr 1 12:31:24 CEST 2012


On 04/01/2012 04:47 PM, MORITA Kazutaka wrote:

>> > Let's leave aside IO req that are just queued, not issued.
>> > 
>> > Even with separate queues, seems that we need to wait for completion of
>> > infly IOs. No?
> Yes.
> 


So either way, we need to wait for infly io. This brings problem, since
queuing is processed in main thread.

>> > 
>> > So one queue with higher priority placement of notify & confchg event,
>> > we could have a working solution.
> Yes, I guess it will work.  I thought it is simpler to use two queues
> than traversing one queue to find the proper placement, though.


Placement is very simple, that is why I used a single queue, just
inserting it at head, since if there is no infly IO hanging around, we
are guaranteed that the event in the head of the queue will be processed
immediately.

Thanks,
Yuan




More information about the sheepdog mailing list