aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r--kernel/rcutree.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index eae331da6be..d42ad30c4d7 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -1219,7 +1219,6 @@ static void force_quiescent_state(struct rcu_state *rsp, int relaxed)
1219 case RCU_GP_IDLE: 1219 case RCU_GP_IDLE:
1220 case RCU_GP_INIT: 1220 case RCU_GP_INIT:
1221 1221
1222 spin_unlock(&rnp->lock);
1223 break; /* grace period idle or initializing, ignore. */ 1222 break; /* grace period idle or initializing, ignore. */
1224 1223
1225 case RCU_SAVE_DYNTICK: 1224 case RCU_SAVE_DYNTICK:
@@ -1246,10 +1245,8 @@ static void force_quiescent_state(struct rcu_state *rsp, int relaxed)
1246 rsp->completed_fqs = lastcomp; 1245 rsp->completed_fqs = lastcomp;
1247 forcenow = signaled == RCU_SAVE_COMPLETED; 1246 forcenow = signaled == RCU_SAVE_COMPLETED;
1248 } 1247 }
1249 if (!forcenow) { 1248 if (!forcenow)
1250 spin_unlock(&rnp->lock);
1251 break; 1249 break;
1252 }
1253 /* fall into next case. */ 1250 /* fall into next case. */
1254 1251
1255 case RCU_FORCE_QS: 1252 case RCU_FORCE_QS:
@@ -1262,14 +1259,10 @@ static void force_quiescent_state(struct rcu_state *rsp, int relaxed)
1262 1259
1263 /* Leave state in case more forcing is required. */ 1260 /* Leave state in case more forcing is required. */
1264 1261
1265 break; 1262 spin_lock(&rnp->lock);
1266
1267 default:
1268
1269 spin_unlock(&rnp->lock);
1270 WARN_ON_ONCE(1);
1271 break; 1263 break;
1272 } 1264 }
1265 spin_unlock(&rnp->lock);
1273unlock_fqs_ret: 1266unlock_fqs_ret:
1274 spin_unlock_irqrestore(&rsp->fqslock, flags); 1267 spin_unlock_irqrestore(&rsp->fqslock, flags);
1275} 1268}