enable XFS write barrier
PATCH 1/1 enable XFS write barrier
I found out that the q->ordered is not being set properly on XFS.
I'm testing the write barrier support of XFS.
I run the test on kernel 2.6.16-rc1-git4.
but I found out that the "-o barrier" option is automatically disabled in my environment.
For this reason I could not test the write barrier's execution path.
The error message in "/var/log/messages" is:
Filesystem "sdb1": Disabling barriers, not supported by the underlying device
This patch fixes these bugs.
Best regards,
Tetsuo Takata
The patch below fixes the aforementioned problem.
---
block/ll_rw_blk.c +1 -0
@@ -332,6 +332,7 @@ int blk_queue_ordered(request_queue_t *qreturn -EINVAL ; } + q->ordered = ordered; q->next_ordered = ordered; q->prepare_flush_fn = prepare_flush_fn;
Quoted 9 lines · Tetsuo Takata
I found out that the
q->orderedis not being set properly on XFS.I'm testing the write barrier support of XFS.
I run the test on kernel 2.6.16-rc1-git4.
but I found out that the "-o barrier" option is automatically disabled in my environment.
For this reason I could not test the write barrier's execution path.
Quoted 5 lines
The error message in "
/var/log/messages" is:
Filesystem "sdb1": Disabling barriers, not supported by the underlying deviceThis patch fixes these bugs.
Woops, thanks!
Signature · 1 line
Jens Axboe