[stgt] Turning off write-caching

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Wed Mar 25 09:38:44 CET 2009


On Wed, 25 Mar 2009 08:25:36 +0000
Chris Webb <chris at arachsys.com> wrote:

> FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp> writes:
> 
> > Seems that we misuse sync_file_range.
> > Can you please try this?
> > 
> > diff --git a/usr/bs_mmap.c b/usr/bs_mmap.c
> [...]
> > diff --git a/usr/bs_rdwr.c b/usr/bs_rdwr.c
> [...]
> > diff --git a/usr/util.h b/usr/util.h
> 
> Thanks! It runs at a much more plausible speed for O_SYNC and O_DIRECT now,
> so this patch does seem to fix the problem.

Thanks!

I've just applied the patch. The next version (v0.9.6) will include
this fix.
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list