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
27a25d32
Commit
27a25d32
authored
Jul 25, 2002
by
Linus Torvalds
Committed by
Linus Torvalds
Jul 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove (broken) parport locking, add comment on fixing it.
At least it compiles now.
parent
ef27791d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
drivers/parport/share.c
drivers/parport/share.c
+10
-4
No files found.
drivers/parport/share.c
View file @
27a25d32
...
...
@@ -1006,14 +1006,20 @@ int parport_claim_or_block(struct pardevice *dev)
#ifdef PARPORT_DEBUG_SHARING
printk
(
KERN_DEBUG
"%s: parport_claim() returned -EAGAIN
\n
"
,
dev
->
name
);
#endif
save_flags
(
flags
);
cli
();
/*
* FIXME!!! Use the proper locking for dev->waiting,
* and make this use the "wait_event_interruptible()"
* interfaces. The cli/sti that used to be here
* did nothing.
*
* See also parport_release()
*/
/* If dev->waiting is clear now, an interrupt
gave us the port and we would deadlock if we slept. */
if
(
dev
->
waiting
)
{
interruptible_sleep_on
(
&
dev
->
wait_q
);
if
(
signal_pending
(
current
))
{
restore_flags
(
flags
);
return
-
EINTR
;
}
r
=
1
;
...
...
@@ -1024,7 +1030,7 @@ int parport_claim_or_block(struct pardevice *dev)
dev
->
name
);
#endif
}
restore_flags
(
flags
);
#ifdef PARPORT_DEBUG_SHARING
if
(
dev
->
port
->
physport
->
cad
!=
dev
)
printk
(
KERN_DEBUG
"%s: exiting parport_claim_or_block "
...
...
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