Ling, Xiaofeng
2004-Jul-02 01:21 UTC
[Ocfs2-devel] [Patch] fix block when receive reply with retry-- unsigned status cause block
the vote_stauts of ocfs_vote_obj is defined as __u32, this causes
"obj->vote_status < 0" always fail in
ocfs_comm_process_vote_reply.
When receive reply message with FLAG_VOTE_UPDATE_RETRY, the process is
block.
I have not found what causes FLAG_VOTE_UPDATE_RETRY is sent back.
-------------------------------------------------------------------
Index: ocfs.h
==================================================================--- ocfs.h
(revision 1232)
+++ ocfs.h (working copy)
@@ -753,7 +753,7 @@
spinlock_t lock;
__u32 vote_state;
__u32 req_lock_type;
- __u32 vote_status;
+ int vote_status;
ocfs_node_map req_vote_map;
ocfs_node_map got_vote_map;
ocfs_node_map tmp_openmap;