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:
parent
f2cdc5d10c
commit
b91e83aa0d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user