#!/bin/sh # common_tests - Shell script commonly used by pstore test scripts # # Copyright (C) Hitachi Ltd., 2015 # Written by Hiraku Toyooka # # Released under the terms of the GPL v2. # Utilities errexit() { # message echo "Error: $1" 1>&2 exit 1 } absdir() { # file_path (cd `dirname $1`; pwd) } show_result() { # result_value if [ $1 -eq 0 ]; then prlog "ok" else prlog "FAIL" rc=1 fi } check_files_exist() { # type of pstorefs file if [ -e ${1}-${backend}-0 ]; then prlog "ok" for f in `ls ${1}-${backend}-*`; do prlog -e "\t${f}" done else prlog "FAIL" rc=1 fi } operate_files() { # tested value, files, operation if [ $1 -eq 0 ]; then prlog for f in $2; do prlog -ne "\t${f} ... " # execute operation $3 $f show_result $? done else prlog " ... FAIL" rc=1 fi } # Parameters TEST_STRING_PATTERN="Testing pstore: uuid=" UUID=`cat /proc/sys/kernel/random/uuid` TOP_DIR=`absdir $0` LOG_DIR=$TOP_DIR/logs/`date +%Y%m%d-%H%M%S`_${UUID}/ REBOOT_FLAG=$TOP_DIR/reboot_flag # Preparing logs LOG_FILE=$LOG_DIR/`basename $0`.log mkdir -p $LOG_DIR || errexit "Failed to make a log directory: $LOG_DIR" date > $LOG_FILE prlog() { # messages /bin/echo "$@" | tee -a $LOG_FILE } # Starting tests rc=0 prlog "=== Pstore unit tests (`basename $0`) ===" prlog "UUID="$UUID prlog -n "Checking pstore backend is registered ... " backend=`cat /sys/module/pstore/parameters/backend` show_result $? prlog -e "\tbackend=${backend}" prlog -e "\tcmdline=`cat /proc/cmdline`" if [ $rc -ne 0 ]; then exit 1 fi nux/net-next.git/refs/?h=nds-private-remove&id=aaaec6fc755447a1d056765b11b24d8ff2b81366'>refslogtreecommitdiff
path: root/fs/adfs/dir_f.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2017-01-31 19:03:21 +0100
committerThomas Gleixner <tglx@linutronix.de>2017-01-31 20:22:18 +0100
commitaaaec6fc755447a1d056765b11b24d8ff2b81366 (patch)
treea7f4167960ee1df86739905b6ccdeb95465bfe5f /fs/adfs/dir_f.h
parent08d85f3ea99f1eeafc4e8507936190e86a16ee8c (diff)
x86/irq: Make irq activate operations symmetric
The recent commit which prevents double activation of interrupts unearthed interesting code in x86. The code (ab)uses irq_domain_activate_irq() to reconfigure an already activated interrupt. That trips over the prevention code now. Fix it by deactivating the interrupt before activating the new configuration. Fixes: 08d85f3ea99f1 "irqdomain: Avoid activating interrupts more than once" Reported-and-tested-by: Mike Galbraith <efault@gmx.de> Reported-and-tested-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: stable@vger.kernel.org Link: http://lkml.kernel.org/r/alpine.DEB.2.20.1701311901580.3457@nanos
Diffstat (limited to 'fs/adfs/dir_f.h')