diff options
| -rw-r--r-- | xlators/performance/write-behind/src/write-behind.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/performance/write-behind/src/write-behind.c b/xlators/performance/write-behind/src/write-behind.c index a0568de39c9..dec64457215 100644 --- a/xlators/performance/write-behind/src/write-behind.c +++ b/xlators/performance/write-behind/src/write-behind.c @@ -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;  }  | 
