diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ocfs2/dlm/dlmrecovery.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c index 773bd32bfd8c..f94550218152 100644 --- a/fs/ocfs2/dlm/dlmrecovery.c +++ b/fs/ocfs2/dlm/dlmrecovery.c | |||
@@ -787,6 +787,7 @@ static int dlm_request_all_locks(struct dlm_ctxt *dlm, u8 request_from, | |||
787 | { | 787 | { |
788 | struct dlm_lock_request lr; | 788 | struct dlm_lock_request lr; |
789 | int ret; | 789 | int ret; |
790 | int status; | ||
790 | 791 | ||
791 | mlog(0, "\n"); | 792 | mlog(0, "\n"); |
792 | 793 | ||
@@ -800,13 +801,15 @@ static int dlm_request_all_locks(struct dlm_ctxt *dlm, u8 request_from, | |||
800 | 801 | ||
801 | // send message | 802 | // send message |
802 | ret = o2net_send_message(DLM_LOCK_REQUEST_MSG, dlm->key, | 803 | ret = o2net_send_message(DLM_LOCK_REQUEST_MSG, dlm->key, |
803 | &lr, sizeof(lr), request_from, NULL); | 804 | &lr, sizeof(lr), request_from, &status); |
804 | 805 | ||
805 | /* negative status is handled by caller */ | 806 | /* negative status is handled by caller */ |
806 | if (ret < 0) | 807 | if (ret < 0) |
807 | mlog(ML_ERROR, "%s: Error %d send LOCK_REQUEST to node %u " | 808 | mlog(ML_ERROR, "%s: Error %d send LOCK_REQUEST to node %u " |
808 | "to recover dead node %u\n", dlm->name, ret, | 809 | "to recover dead node %u\n", dlm->name, ret, |
809 | request_from, dead_node); | 810 | request_from, dead_node); |
811 | else | ||
812 | ret = status; | ||
810 | // return from here, then | 813 | // return from here, then |
811 | // sleep until all received or error | 814 | // sleep until all received or error |
812 | return ret; | 815 | return ret; |