]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: make aio_writes to the cache always non-blocking by default
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 13 Mar 2013 16:42:43 +0000 (09:42 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Thu, 28 Mar 2013 17:46:58 +0000 (10:46 -0700)
commit03ac01fa6a94fa7a66ede057e9267e0a562c3cdb
treed8c9be56a824c1d9c7a5d2e686cb2ab9b633c248
parentc21250406eced8e5c467f492a2148c57978634f4
librbd: make aio_writes to the cache always non-blocking by default

When the ObjectCacher's writex blocks, it affects the thread requesting
the aio, which can cause starvation for other I/O when used by QEMU.

Preserve the old behavior via a config option in case this has any
bad side-effects, like too much memory usage under heavy write loads.

Fixes: #4091
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/common/config_opts.h
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/internal.cc