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
f1eda5ba
Commit
f1eda5ba
authored
May 04, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bk.linux1394.org/ieee1394-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
93dbf6d6
f3fdd587
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
drivers/ieee1394/ieee1394_core.c
drivers/ieee1394/ieee1394_core.c
+7
-2
drivers/ieee1394/nodemgr.c
drivers/ieee1394/nodemgr.c
+7
-1
No files found.
drivers/ieee1394/ieee1394_core.c
View file @
f1eda5ba
...
...
@@ -994,7 +994,7 @@ void abort_timedouts(unsigned long __opaque)
* packets that have a "complete" function are sent here. This way, the
* completion is run out of kernel context, and doesn't block the rest of
* the stack. */
static
int
khpsbpkt_pid
=
-
1
;
static
int
khpsbpkt_pid
=
-
1
,
khpsbpkt_kill
;
static
DECLARE_COMPLETION
(
khpsbpkt_complete
);
struct
sk_buff_head
hpsbpkt_queue
;
static
DECLARE_MUTEX_LOCKED
(
khpsbpkt_sig
);
...
...
@@ -1021,6 +1021,9 @@ static int hpsbpkt_thread(void *__hi)
daemonize
(
"khpsbpkt"
);
while
(
!
down_interruptible
(
&
khpsbpkt_sig
))
{
if
(
khpsbpkt_kill
)
break
;
while
((
skb
=
skb_dequeue
(
&
hpsbpkt_queue
))
!=
NULL
)
{
packet
=
(
struct
hpsb_packet
*
)
skb
->
data
;
...
...
@@ -1094,7 +1097,9 @@ static void __exit ieee1394_cleanup(void)
bus_unregister
(
&
ieee1394_bus_type
);
if
(
khpsbpkt_pid
>=
0
)
{
kill_proc
(
khpsbpkt_pid
,
SIGTERM
,
1
);
khpsbpkt_kill
=
1
;
mb
();
up
(
&
khpsbpkt_sig
);
wait_for_completion
(
&
khpsbpkt_complete
);
}
...
...
drivers/ieee1394/nodemgr.c
View file @
f1eda5ba
...
...
@@ -117,6 +117,7 @@ struct host_info {
struct
semaphore
reset_sem
;
int
pid
;
char
daemon_name
[
15
];
int
kill_me
;
};
static
int
nodemgr_bus_match
(
struct
device
*
dev
,
struct
device_driver
*
drv
);
...
...
@@ -1478,6 +1479,9 @@ static int nodemgr_host_thread(void *__hi)
unsigned
int
generation
=
0
;
int
i
;
if
(
hi
->
kill_me
)
break
;
/* Pause for 1/4 second in 1/16 second intervals,
* to make sure things settle down. */
for
(
i
=
0
;
i
<
4
;
i
++
)
{
...
...
@@ -1678,7 +1682,9 @@ static void nodemgr_remove_host(struct hpsb_host *host)
if
(
hi
)
{
if
(
hi
->
pid
>=
0
)
{
kill_proc
(
hi
->
pid
,
SIGTERM
,
1
);
hi
->
kill_me
=
1
;
mb
();
up
(
&
hi
->
reset_sem
);
wait_for_completion
(
&
hi
->
exited
);
nodemgr_remove_host_dev
(
&
host
->
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