1. 27 Jun, 2016 2 commits
    • Rafael J. Wysocki's avatar
      intel_pstate: Do not clear utilization update hooks on policy changes · 5ab666e0
      Rafael J. Wysocki authored
      intel_pstate_set_policy() is invoked by the cpufreq core during
      driver initialization, on changes of policy attributes (minimim and
      maximum frequency, for example) via sysfs and via CPU notifications
      from the platform firmware.  On some platforms the latter may occur
      relatively often.
      
      Commit bb6ab52f (intel_pstate: Do not set utilization update hook
      too early) made intel_pstate_set_policy() clear the CPU's utilization
      update hook before updating the policy attributes for it (and set the
      hook again after doind that), but that involves invoking
      synchronize_sched() and adds overhead to the CPU notifications
      mentioned above and to the sched-RCU handling in general.
      
      That extra overhead is arguably not necessary, because updating
      policy attributes when the CPU's utilization update hook is active
      should not lead to any adverse effects, so drop the clearing of
      the hook from intel_pstate_set_policy() and make it check if
      the hook has been set already when attempting to set it.
      
      Fixes: bb6ab52f (intel_pstate: Do not set utilization update hook too early)
      Reported-by: default avatarJisheng Zhang <jszhang@marvell.com>
      Tested-by: default avatarJisheng Zhang <jszhang@marvell.com>
      Tested-by: default avatarDoug Smythies <dsmythies@telus.net>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      5ab666e0
    • Linus Torvalds's avatar
      Linux 4.7-rc5 · 4c2e07c6
      Linus Torvalds authored
      4c2e07c6
  2. 26 Jun, 2016 1 commit
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 2ac9b973
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Two straightforward fixes.
      
        One is a concurrency issue only affecting SAS connected SATA drives,
        but which could hang the storage subsystem if it triggers (because the
        outstanding command count on error never goes back to zero) and the
        other is a NO_TAG fallout from the switch to hostwide tags which
        causes the system to crash on module insertion (we've checked
        carefully and only the 53c700 family of drivers is vulnerable to this
        issue)"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        53c700: fix BUG on untagged commands
        scsi: fix race between simultaneous decrements of ->host_failed
      2ac9b973
  3. 25 Jun, 2016 37 commits