Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b7c19476
Commit
b7c19476
authored
Sep 07, 2017
by
Bjorn Helgaas
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pci/host-hv' into next
* pci/host-hv: PCI: hv: Do not sleep in compose_msi_msg()
parents
6238e057
80bfeeb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
drivers/pci/host/pci-hyperv.c
drivers/pci/host/pci-hyperv.c
+7
-1
No files found.
drivers/pci/host/pci-hyperv.c
View file @
b7c19476
...
...
@@ -50,6 +50,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/semaphore.h>
#include <linux/irqdomain.h>
#include <asm/irqdomain.h>
...
...
@@ -1159,7 +1160,12 @@ static void hv_compose_msi_msg(struct irq_data *data, struct msi_msg *msg)
goto
free_int_desc
;
}
wait_for_completion
(
&
comp
.
comp_pkt
.
host_event
);
/*
* Since this function is called with IRQ locks held, can't
* do normal wait for completion; instead poll.
*/
while
(
!
try_wait_for_completion
(
&
comp
.
comp_pkt
.
host_event
))
udelay
(
100
);
if
(
comp
.
comp_pkt
.
completion_status
<
0
)
{
dev_err
(
&
hbus
->
hdev
->
device
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment