File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1248,6 +1248,8 @@ static inline int __do_essa(struct kvm_vcpu *vcpu, const int orc)
1248
1248
1249
1249
static int handle_essa (struct kvm_vcpu * vcpu )
1250
1250
{
1251
+ lockdep_assert_held (& vcpu -> kvm -> srcu );
1252
+
1251
1253
/* entries expected to be 1FF */
1252
1254
int entries = (vcpu -> arch .sie_block -> cbrlo & ~PAGE_MASK ) >> 3 ;
1253
1255
unsigned long * cbrlo ;
@@ -1297,12 +1299,8 @@ static int handle_essa(struct kvm_vcpu *vcpu)
1297
1299
/* Retry the ESSA instruction */
1298
1300
kvm_s390_retry_instr (vcpu );
1299
1301
} else {
1300
- int srcu_idx ;
1301
-
1302
1302
mmap_read_lock (vcpu -> kvm -> mm );
1303
- srcu_idx = srcu_read_lock (& vcpu -> kvm -> srcu );
1304
1303
i = __do_essa (vcpu , orc );
1305
- srcu_read_unlock (& vcpu -> kvm -> srcu , srcu_idx );
1306
1304
mmap_read_unlock (vcpu -> kvm -> mm );
1307
1305
if (i < 0 )
1308
1306
return i ;
You can’t perform that action at this time.
0 commit comments