rgw-multisite: why give a non-zero duration for lock of RGWDataSyncShardCR?

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

 



Hi, guys

RGWDataSyncShardCR will add a lock on its status oid before doing sync. The
lock will re-lock itself every half duration. With a positive duration it
will be released forcibly if time expires when another lock request from
different client reached. Since the re-lock process is executed in the same
thread with coroutine, the re-lock maybe lagging. In this situation, both
RGWDataSyncShardCRs will think it owns the lock and continues to do sync.

So my question is why not use a zero duration and let RGWDataSyncShardCR
give up a lock on its own (it will indeed release the lock)?

Thanks,
Xinying.
--
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