Re: [PATCH -tip 3/3] locking/pvqspinlock: Robustify init_qspinlock_stat()

2016-04-18 Thread Waiman Long
On 04/18/2016 02:31 AM, Davidlohr Bueso wrote: Specifically around the debugfs file creation calls, I have no idea if they could ever possibly fail, but this is core code (debug aside) so lets at least check the return value and inform anything fishy. Signed-off-by: Davidlohr Bueso --- kernel/

Re: [PATCH -tip 3/3] locking/pvqspinlock: Robustify init_qspinlock_stat()

2016-04-18 Thread Davidlohr Bueso
On Sun, 17 Apr 2016, Davidlohr Bueso wrote: diff --git a/kernel/locking/qspinlock_stat.h b/kernel/locking/qspinlock_stat.h index 72722334237a..ddcd653c942c 100644 --- a/kernel/locking/qspinlock_stat.h +++ b/kernel/locking/qspinlock_stat.h @@ -225,12 +225,18 @@ static int __init init_qspinlock_st

[PATCH -tip 3/3] locking/pvqspinlock: Robustify init_qspinlock_stat()

2016-04-17 Thread Davidlohr Bueso
Specifically around the debugfs file creation calls, I have no idea if they could ever possibly fail, but this is core code (debug aside) so lets at least check the return value and inform anything fishy. Signed-off-by: Davidlohr Bueso --- kernel/locking/qspinlock_stat.h | 14 ++ 1 f