Replace remaining uses of __le16/__le32/__le64 in contexts that are
not relevant to code generation, or where objects are only used locally
and do not require endian swaps.
Also, remove unnecessary calls to le16/32/64_to_cpu.
This change is a no-op on all architectures.
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Replace remaining uses of __le16/__le32/__le64 in contexts that are
not relevant to code generation.
Also, add missing calls to init_le32 in an initializer.
This change is a no-op on all architectures.
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Replace remaining uses of __le16/__le32/__le64 in contexts that are
not relevant to code generation, or where objects are only used locally
and do not require endian swaps.
Also, remove unnecessary calls to le16/32/64_to_cpu.
This change is a no-op on all architectures.
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Replace remaining uses of __le32 in Transaction.h with uint32_t.
These objects are only used locally and do not require endian swaps.
This change is a no-op on all architectures.
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
mgr/dashboard: Editing RGW bucket fails because of name is already in use
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
exit_open should be set atomically with state checks and
write_dispatching changes, or there would be chances to be blocked
forever by exit_open.
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
It's OK to discard the returned future of Connection::close() because
Messenger::shutdown() will wait for all connections closed.
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
We are using with_gate() to wrap a slow operation when we want to start
it but don't want/need to wait it to be finished in the same function.
In this case, the future returned from with_gate() is discarded, and we
need to make sure there is another continuation responsible to waiting
for the gate closed.
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
With the new ESTABLISHING state, connection lookup and acceptance can be
atomic, solving the issues related to racing connect.
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
wait_replaced(count): wait for connection replaced;
wait_established(): wait for all pending messages sent and received;
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
It is possible to lose message at server side due to lossy policy,
causing unit test blocked and waiting for lost replies.
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
rbd/pybind: fix unsupported format character of %lx
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
mgr/dashboard: Improve workaround to redraw datatables
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Patrick Seidensal <pnawracay@suse.com>