File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -610,19 +610,24 @@ static int oplock_break_pending(struct oplock_info *opinfo, int req_op_level)
610
610
if (opinfo -> op_state == OPLOCK_CLOSING )
611
611
return - ENOENT ;
612
612
else if (opinfo -> level <= req_op_level ) {
613
- if (opinfo -> is_lease &&
614
- opinfo -> o_lease -> state !=
615
- (SMB2_LEASE_HANDLE_CACHING_LE |
616
- SMB2_LEASE_READ_CACHING_LE ))
613
+ if (opinfo -> is_lease == false)
614
+ return 1 ;
615
+
616
+ if (opinfo -> o_lease -> state !=
617
+ (SMB2_LEASE_HANDLE_CACHING_LE |
618
+ SMB2_LEASE_READ_CACHING_LE ))
617
619
return 1 ;
618
620
}
619
621
}
620
622
621
623
if (opinfo -> level <= req_op_level ) {
622
- if (opinfo -> is_lease &&
623
- opinfo -> o_lease -> state !=
624
- (SMB2_LEASE_HANDLE_CACHING_LE |
625
- SMB2_LEASE_READ_CACHING_LE )) {
624
+ if (opinfo -> is_lease == false) {
625
+ wake_up_oplock_break (opinfo );
626
+ return 1 ;
627
+ }
628
+ if (opinfo -> o_lease -> state !=
629
+ (SMB2_LEASE_HANDLE_CACHING_LE |
630
+ SMB2_LEASE_READ_CACHING_LE )) {
626
631
wake_up_oplock_break (opinfo );
627
632
return 1 ;
628
633
}
You can’t perform that action at this time.
0 commit comments