Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Linaro
qcomlt
kernel
Commits
c77380d4
Commit
c77380d4
authored
16 years ago
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Downloads
Patches
Plain Diff
ide-disk: set non-rotational queue flag for SSD and CF devices
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
64c2eae2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/ide/ide-disk.c
+6
-2
6 additions, 2 deletions
drivers/ide/ide-disk.c
with
6 additions
and
2 deletions
drivers/ide/ide-disk.c
+
6
−
2
View file @
c77380d4
...
...
@@ -600,6 +600,7 @@ static int ide_disk_check(ide_drive_t *drive, const char *s)
static
void
ide_disk_setup
(
ide_drive_t
*
drive
)
{
struct
ide_disk_obj
*
idkp
=
drive
->
driver_data
;
struct
request_queue
*
q
=
drive
->
queue
;
ide_hwif_t
*
hwif
=
drive
->
hwif
;
u16
*
id
=
drive
->
id
;
char
*
m
=
(
char
*
)
&
id
[
ATA_ID_PROD
];
...
...
@@ -626,11 +627,14 @@ static void ide_disk_setup(ide_drive_t *drive)
if
(
max_s
>
hwif
->
rqsize
)
max_s
=
hwif
->
rqsize
;
blk_queue_max_sectors
(
drive
->
queue
,
max_s
);
blk_queue_max_sectors
(
q
,
max_s
);
}
printk
(
KERN_INFO
"%s: max request size: %dKiB
\n
"
,
drive
->
name
,
drive
->
queue
->
max_sectors
/
2
);
q
->
max_sectors
/
2
);
if
(
ata_id_is_ssd
(
id
)
||
ata_id_is_cfa
(
id
))
queue_flag_set_unlocked
(
QUEUE_FLAG_NONROT
,
q
);
/* calculate drive capacity, and select LBA if possible */
ide_disk_get_capacity
(
drive
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment