Re: Lock Constrains about Fast Dispatch for Messenger

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 4, 2014 at 1:32 AM, Gregory Farnum <greg@xxxxxxxxxxx> wrote:
> On Tue, Dec 2, 2014 at 10:39 PM, Haomai Wang <haomaiwang@xxxxxxxxx> wrote:
>> Another question:
>>
>> we have "lossy", "server", "standy" and "resetcheck" as policy for
>> Messenger, but in practice there exists some overlap semantics among
>> these fields. For example, "server" and "standy" plays the same
>> function in Simple and Async impl. It will let connection standby if
>> losing connection. Maybe we can combine the two?
>
> I think you're missing some uses of these. "Servers" will never
> initiate a reconnect to the other endpoint, but they can go into
> standby and queue up new messages for if a reconnect does happen.

OK. I missed it that if a client set policy.standby, it also can make
itself standby.

>
>> And "lossy" and "resetcheck" also seemed redundancy. If a connection
>> is lossy, we will want to reset the connection state. "resetcheck" is
>> mainly used when server accept  a connection and meets conflict, but
>> PR(https://github.com/ceph/ceph/pull/3070) remove this check, so it's
>> really useless in current impl.
>
> Not quite. The PR removes one of the resetcheck gates, but there are
> two of them. :) If you look at the commit which added resetcheck
> you'll see that it's about some peer connection races, but again lossy
> is used in a lot of other places orthogonal to resetcheck.

Hmm, I got it.

> -Greg



-- 
Best Regards,

Wheat
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux