summaryrefslogtreecommitdiffstats
path: root/xlators/performance/write-behind/src/write-behind.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/performance/write-behind/src/write-behind.c')
-rw-r--r--xlators/performance/write-behind/src/write-behind.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xlators/performance/write-behind/src/write-behind.c b/xlators/performance/write-behind/src/write-behind.c
index cf8dd1f9e00..877d9217f5d 100644
--- a/xlators/performance/write-behind/src/write-behind.c
+++ b/xlators/performance/write-behind/src/write-behind.c
@@ -1021,12 +1021,11 @@ wb_fulfill_short_write (wb_request_t *head, int size)
}
}
- }
done:
+ __wb_request_unref (head);
+ }
UNLOCK (&wb_inode->lock);
- __wb_request_unref (head);
-
wb_add_head_for_retry (req);
out:
return;