OSDN Git Service

Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 14 Mar 2019 09:34:51 +0000 (09:34 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 14 Mar 2019 09:34:51 +0000 (09:34 +0000)
Pull request

 * Add 'drop-cache=on|off' option to file-posix.c.  The default is on.
   Disabling the option fixes a QEMU 3.0.0 performance regression when live
   migrating on the same host with cache.direct=off.

# gpg: Signature made Wed 13 Mar 2019 11:07:48 GMT
# gpg:                using RSA key 9CA4ABB381AB73C8
# gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" [full]
# gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>" [full]
# Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8

* remotes/stefanha/tags/block-pull-request:
  file-posix: add drop-cache=on|off option

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
1  2 
block/file-posix.c
qapi/block-core.json

@@@ -976,7 -955,9 +987,8 @@@ static void raw_reopen_commit(BDRVReope
  {
      BDRVRawReopenState *rs = state->opaque;
      BDRVRawState *s = state->bs->opaque;
 -    Error *local_err = NULL;
  
+     s->drop_cache = rs->drop_cache;
      s->check_cache_dropped = rs->check_cache_dropped;
      s->open_flags = rs->open_flags;
  
Simple merge