1. 03 Jun, 2010 2 commits
    • Ian Campbell's avatar
      xen: avoid allocation causing potential swap activity on the resume path · b3831cb5
      Ian Campbell authored
      Since the device we are resuming could be the device containing the
      swap device we should ensure that the allocation cannot cause
      IO.
      
      On resume, this path is triggered when the running system tries to
      continue using its devices.  If it cannot then the resume will fail;
      to try to avoid this we let it dip into the emergency pools.
      
      The majority of these changes were made when linux-2.6.18-xen.hg
      changeset e8b49cfbdac0 was ported upstream in
      a144ff09 but somehow this hunk was
      dropped.
      Signed-off-by: default avatarIan Campbell <ian.campbell@citrix.com>
      Acked-by: default avatarJeremy Fitzhardinge <jeremy@goop.org>
      Cc: Stable Kernel <stable@kernel.org> # .32.x
      b3831cb5
    • Ian Campbell's avatar
      xen: ensure timer tick is resumed even on CPU driving the resume · cd52e17e
      Ian Campbell authored
      The core suspend/resume code is run from stop_machine on CPU0 but
      parts of the suspend/resume machinery (including xen_arch_resume) are
      run on whichever CPU happened to schedule the xenwatch kernel thread.
      
      As part of the non-core resume code xen_arch_resume is called in order
      to restart the timer tick on non-boot processors. The boot processor
      itself is taken care of by core timekeeping code.
      
      xen_arch_resume uses smp_call_function which does not call the given
      function on the current processor. This means that we can end up with
      one CPU not receiving timer ticks if the xenwatch thread happened to
      be scheduled on CPU > 0.
      
      Use on_each_cpu instead of smp_call_function to ensure the timer tick
      is resumed everywhere.
      Signed-off-by: default avatarIan Campbell <ian.campbell@citrix.com>
      Acked-by: default avatarJeremy Fitzhardinge <jeremy@goop.org>
      Cc: Stable Kernel <stable@kernel.org> # .32.x
      cd52e17e
  2. 30 May, 2010 26 commits
  3. 29 May, 2010 12 commits