Skip to contentSkip to conversation

passthrough: drop break statement following c/s cd7dedad820

PATCH In review Igor Druzhinin 3 participants 4 messages Dec 5, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 passthrough: drop break statement following c/s cd7dedad820

The locking responsibilities have changed and a premature break in this section now causes the following assertion:

Assertion '!preempt_count()' failed at preempt.c:36

---
 xen/drivers/passthrough/pci.c | 1 -
 1 file changed, 1 deletion(-)
xen/drivers/passthrough/pci.c +0 -1
index ced0c28..c07a639 100644
@@ -1705,7 +1705,6 @@ int iommu_do_pci_domctl(
                        seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn));
                 ret = -EINVAL;
             }
-            break;
         }
         else if ( !ret )
             ret = assign_device(d, seg, bus, devfn, flags);
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw
Quoted 9 lines

-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 05 December 2019 12:14
To: [email protected]
Cc: [email protected]; [email protected]; Durrant, Paul <[email protected]>; Igor Druzhinin <[email protected]>
Subject: [PATCH v2] passthrough: drop break statement following c/s cd7dedad820

Quoted 6 lines

The locking responsibilities have changed and a premature break in this section now causes the following assertion:

Assertion '!preempt_count()' failed at preempt.c:36

Actually, it was suggested by Jan, but you can put my R-b on the patch.

Paul

Quoted 19 lines
---
 xen/drivers/passthrough/pci.c | 1 -
 1 file changed, 1 deletion(-)
xen/drivers/passthrough/pci.c +0 -2
index ced0c28..c07a639 100644
@@ -1705,7 +1705,6 @@ int iommu_do_pci_domctl(
                        seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn));
                 ret = -EINVAL;
             }
-            break;
         }
         else if ( !ret )
             ret = assign_device(d, seg, bus, devfn, flags);
--
Quoted 1 line

2.7.4

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
Quoted 9 lines · Paul
Quoted 9 lines

-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 05 December 2019 12:14
To: [email protected]
Cc: [email protected]; [email protected]; Durrant, Paul <[email protected]>; Igor Druzhinin <[email protected]>
Subject: [PATCH v2] passthrough: drop break statement following c/s cd7dedad820

Quoted 9 lines
Quoted 6 lines

The locking responsibilities have changed and a premature break in this section now causes the following assertion:

Assertion '!preempt_count()' failed at preempt.c:36

Actually, it was suggested by Jan, but you can put my R-b on the patch.

Oh, indeed :) Please fix up while committing as you wish.

Igor

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reviewed-by
#3 lore raw
In reply to Durrant, Paul
Quoted 9 lines · Paul
Quoted 9 lines

-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 05 December 2019 12:14
To: [email protected]
Cc: [email protected]; [email protected]; Durrant, Paul <[email protected]>; Igor Druzhinin <[email protected]>
Subject: [PATCH v2] passthrough: drop break statement following c/s cd7dedad820

Quoted 8 lines
Quoted 6 lines

The locking responsibilities have changed and a premature break in this section now causes the following assertion:

Assertion '!preempt_count()' failed at preempt.c:36

Actually, it was suggested by Jan, but you can put my R-b on the patch.

And mine:

I'll get this committed soon.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel