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
95c45597
Commit
95c45597
authored
Oct 17, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix IDE init order dependency problem, noted by Jens Axboe.
This is pretty ugly, Al will fix up properly.
parent
a3786fd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
drivers/ide/ide.c
drivers/ide/ide.c
+13
-1
No files found.
drivers/ide/ide.c
View file @
95c45597
...
@@ -1526,7 +1526,19 @@ int ide_do_drive_cmd (ide_drive_t *drive, struct request *rq, ide_action_t actio
...
@@ -1526,7 +1526,19 @@ int ide_do_drive_cmd (ide_drive_t *drive, struct request *rq, ide_action_t actio
#endif
#endif
rq
->
errors
=
0
;
rq
->
errors
=
0
;
rq
->
rq_status
=
RQ_ACTIVE
;
rq
->
rq_status
=
RQ_ACTIVE
;
rq
->
rq_dev
=
mk_kdev
(
drive
->
disk
->
major
,
drive
->
disk
->
first_minor
);
/*
* Aiee. This is ugly, but it gets called before "drive->disk"
* has been initialized. Al will fix it, I'm sure.
*/
if
(
drive
->
disk
)
rq
->
rq_dev
=
mk_kdev
(
drive
->
disk
->
major
,
drive
->
disk
->
first_minor
);
else
{
printk
(
"IDE init is ugly:"
);
dump_stack
();
rq
->
rq_dev
=
mk_kdev
(
HWIF
(
drive
)
->
major
,
(
drive
->
select
.
b
.
unit
)
<<
PARTN_BITS
);
}
rq
->
rq_disk
=
drive
->
disk
;
rq
->
rq_disk
=
drive
->
disk
;
if
(
action
==
ide_wait
)
if
(
action
==
ide_wait
)
rq
->
waiting
=
&
wait
;
rq
->
waiting
=
&
wait
;
...
...
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