[sheepdog] [PATCH] sheepdog: serialize requests to overwrapping area

Stefan Hajnoczi stefanha at redhat.com
Mon Jul 20 17:46:49 CEST 2015

On Sat, Jul 18, 2015 at 01:44:24AM +0900, Hitoshi Mitake wrote:
> Current sheepdog driver only serializes create requests in oid
> unit. This mechanism isn't enough for handling requests to
> overwrapping area spanning multiple oids, so it can result bugs like
> below:
> https://bugs.launchpad.net/sheepdog-project/+bug/1456421
> This patch adds a new serialization mechanism for the problem. The
> difference from the old one is:
> 1. serialize entire aiocb if their targetting areas overwrap
> 2. serialize all requests (read, write, and discard), not only creates
> This patch also removes the old mechanism because the new one can be
> an alternative.
> Cc: Kevin Wolf <kwolf at redhat.com>
> Cc: Stefan Hajnoczi <stefanha at redhat.com>
> Cc: Teruaki Ishizaki <ishizaki.teruaki at lab.ntt.co.jp>
> Cc: Vasiliy Tolstov <v.tolstov at selfip.ru>
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---
>  block/sheepdog.c | 152 ++++++++++++++++++++++++++-----------------------------
>  1 file changed, 71 insertions(+), 81 deletions(-)

CCing Jeff Cody who now handles pull requests for network protocols.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20150720/3574179b/attachment.sig>

More information about the sheepdog mailing list