wb_flush - keep reference on fd for process_frame to perform STACK_WIND of flush.

This patch fixes bug report by Greg <greg@easyflirt.com> on gluster-users@ with subject 'glusterfsd crash'

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
This commit is contained in:
Anand V. Avati 2009-04-02 16:37:37 +05:30 committed by Anand V. Avati
parent f2cdc5d10c
commit b91e83aa0d

View File

@ -1658,6 +1658,8 @@ wb_flush (call_frame_t *frame,
process_frame->local = tmp_local;
}
fd_ref (fd);
wb_enqueue (file, stub);
wb_process_queue (process_frame, file, 1);
@ -1678,6 +1680,8 @@ wb_flush (call_frame_t *frame,
STACK_DESTROY (process_frame->root);
}
fd_unref (fd);
return 0;
}