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 4ee10b5249d..76ecd7cb6fe 100644 --- a/xlators/performance/write-behind/src/write-behind.c +++ b/xlators/performance/write-behind/src/write-behind.c @@ -285,6 +285,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 */ |