Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple PCIe FMC carrier SPEC - Software
Commits
a6cd6fd7
Commit
a6cd6fd7
authored
Dec 04, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel/nic: increment module use while sleeping
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
00f12b55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
wr-nic-dio.c
kernel/wr-nic-dio.c
+4
-1
No files found.
kernel/wr-nic-dio.c
View file @
a6cd6fd7
...
...
@@ -255,11 +255,14 @@ again:
ch
--
;
c
--
;
/* The for above incremeted them */
/*
* HACK: since 2.1.68 (Nov 1997) the ioctl is called locked.
* So we need to unlock, but that is dangerous for rmmod
* So we need to unlock, but that is dangerous for rmmod.
* Let's thus increase the module usage while sleeping
*/
try_module_get
(
THIS_MODULE
);
rtnl_unlock
();
wait_event_interruptible
(
c
->
q
,
c
->
bhead
!=
c
->
btail
);
rtnl_lock
();
module_put
(
THIS_MODULE
);
if
(
signal_pending
(
current
))
return
-
ERESTARTSYS
;
goto
again
;
...
...
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