Re: [ceph-users] 答复: How does ceph preserve read/write consistency?

2017-03-10 Thread Gregory Farnum
On Thu, Mar 9, 2017 at 7:20 PM 许雪寒 wrote: > Thanks for your reply. > > As the log shows, in our test, a READ that come after a WRITE did finished > before that WRITE. This is where you've gone astray. Any storage system is perfectly free to reorder simultaneous requests -- defined as those whos

[ceph-users] 答复: How does ceph preserve read/write consistency?

2017-03-09 Thread 许雪寒
Thanks for your reply. As the log shows, in our test, a READ that come after a WRITE did finished before that WRITE. And I read the source code, it seems that, for writes, in ReplicatedPG::do_op method, the thread in OSD_op_tp calls ReplicatedPG::get_rw_lock method which tries to get RWState::R