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
9ca3fc76
Commit
9ca3fc76
authored
Mar 21, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] add __ide_set_handler to fix abort race
parent
61b9de84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
drivers/ide/ide-iops.c
drivers/ide/ide-iops.c
+12
-4
No files found.
drivers/ide/ide-iops.c
View file @
9ca3fc76
...
...
@@ -999,13 +999,11 @@ EXPORT_SYMBOL(ide_config_drive_speed);
*
* See also ide_execute_command
*/
void
ide_set_handler
(
ide_drive_t
*
drive
,
ide_handler_t
*
handler
,
void
__
ide_set_handler
(
ide_drive_t
*
drive
,
ide_handler_t
*
handler
,
unsigned
int
timeout
,
ide_expiry_t
*
expiry
)
{
unsigned
long
flags
;
ide_hwgroup_t
*
hwgroup
=
HWGROUP
(
drive
);
spin_lock_irqsave
(
&
ide_lock
,
flags
);
if
(
hwgroup
->
handler
!=
NULL
)
{
printk
(
KERN_CRIT
"%s: ide_set_handler: handler not null; "
"old=%p, new=%p
\n
"
,
...
...
@@ -1015,11 +1013,21 @@ void ide_set_handler (ide_drive_t *drive, ide_handler_t *handler,
hwgroup
->
expiry
=
expiry
;
hwgroup
->
timer
.
expires
=
jiffies
+
timeout
;
add_timer
(
&
hwgroup
->
timer
);
}
EXPORT_SYMBOL
(
__ide_set_handler
);
void
ide_set_handler
(
ide_drive_t
*
drive
,
ide_handler_t
*
handler
,
unsigned
int
timeout
,
ide_expiry_t
*
expiry
)
{
unsigned
long
flags
;
spin_lock_irqsave
(
&
ide_lock
,
flags
);
__ide_set_handler
(
drive
,
handler
,
timeout
,
expiry
);
spin_unlock_irqrestore
(
&
ide_lock
,
flags
);
}
EXPORT_SYMBOL
(
ide_set_handler
);
/**
* ide_execute_command - execute an IDE command
* @drive: IDE drive to issue the command against
...
...
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