summaryrefslogtreecommitdiff
path: root/.zsh/zshenv/80_debian
blob: 74ac953f4467cff37881a9e956b19d472f5b03c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# zshenv/80_debian
#
# Set variables related to Debian
#
# Copyright © 2010 Tobias Klauser <tklauser@distanz.ch>
# Released under the terms of the Artistic Licence 2.0
#
# Source repository: git://git.distanz.ch/dotfiles/zsh.git

export DEBFULLNAME='Tobias Klauser'
export DEBEMAIL='tklauser@distanz.ch'

# set variable debian_chroot if running in a chroot with /etc/debian_chroot
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
  export debian_chroot="$(</etc/debian_chroot)"
fi

# vim:ft=zsh
f'>patch) treeef634a7c192d03dd1f04b82f20ef58e78b55b3be parentb831275a3553c32091222ac619cfddd73a5553fb (diff)
timers: Lock base for same bucket optimization
Linus stumbled over the unlocked modification of the timer expiry value in mod_timer() which is an optimization for timers which stay in the same bucket - due to the bucket granularity - despite their expiry time getting updated. The optimization itself still makes sense even if we take the lock, because in case that the bucket stays the same, we avoid the pointless queue/enqueue dance. Make the check and the modification of timer->expires protected by the base lock and shuffle the remaining code around so we can keep the lock held when we actually have to requeue the timer to a different bucket. Fixes: f00c0afdfa62 ("timers: Implement optimization for same expiry time in mod_timer()") Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/alpine.DEB.2.20.1610241711220.4983@nanos Cc: stable@vger.kernel.org Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org>
Diffstat