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 042fbd797bf..9b656069636 100644 --- a/xlators/performance/write-behind/src/write-behind.c +++ b/xlators/performance/write-behind/src/write-behind.c @@ -280,6 +280,10 @@ wb_requests_conflict (wb_request_t *lie, wb_request_t *req) us in the todo list */ return _gf_false; + /* requests from different fd do not conflict with each other. */ + if (req->fd && (req->fd != lie->fd)) + return _gf_false; + if (lie->ordering.append) /* all modifications wait for the completion of outstanding append */ |