Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
0ee40c66
Commit
0ee40c66
authored
Oct 28, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-linus' of
git://brick.kernel.dk/data/git/linux-2.6-block
parents
236fa081
2824bc93
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
18 deletions
+24
-18
drivers/block/elevator.c
drivers/block/elevator.c
+14
-10
drivers/block/ll_rw_blk.c
drivers/block/ll_rw_blk.c
+8
-6
fs/partitions/check.c
fs/partitions/check.c
+1
-1
include/linux/genhd.h
include/linux/genhd.h
+1
-1
No files found.
drivers/block/elevator.c
View file @
0ee40c66
...
...
@@ -97,7 +97,6 @@ static struct elevator_type *elevator_find(const char *name)
struct
elevator_type
*
e
=
NULL
;
struct
list_head
*
entry
;
spin_lock_irq
(
&
elv_list_lock
);
list_for_each
(
entry
,
&
elv_list
)
{
struct
elevator_type
*
__e
;
...
...
@@ -108,7 +107,6 @@ static struct elevator_type *elevator_find(const char *name)
break
;
}
}
spin_unlock_irq
(
&
elv_list_lock
);
return
e
;
}
...
...
@@ -120,12 +118,15 @@ static void elevator_put(struct elevator_type *e)
static
struct
elevator_type
*
elevator_get
(
const
char
*
name
)
{
struct
elevator_type
*
e
=
elevator_find
(
name
)
;
struct
elevator_type
*
e
;
if
(
!
e
)
return
NULL
;
if
(
!
try_module_get
(
e
->
elevator_owner
))
return
NULL
;
spin_lock_irq
(
&
elv_list_lock
);
e
=
elevator_find
(
name
);
if
(
e
&&
!
try_module_get
(
e
->
elevator_owner
))
e
=
NULL
;
spin_unlock_irq
(
&
elv_list_lock
);
return
e
;
}
...
...
@@ -153,11 +154,15 @@ static char chosen_elevator[16];
static
void
elevator_setup_default
(
void
)
{
struct
elevator_type
*
e
;
/*
* check if default is set and exists
*/
if
(
chosen_elevator
[
0
]
&&
elevator_find
(
chosen_elevator
))
if
(
chosen_elevator
[
0
]
&&
(
e
=
elevator_get
(
chosen_elevator
)))
{
elevator_put
(
e
);
return
;
}
#if defined(CONFIG_IOSCHED_AS)
strcpy
(
chosen_elevator
,
"anticipatory"
);
...
...
@@ -555,10 +560,9 @@ void elv_unregister_queue(struct request_queue *q)
int
elv_register
(
struct
elevator_type
*
e
)
{
spin_lock_irq
(
&
elv_list_lock
);
if
(
elevator_find
(
e
->
elevator_name
))
BUG
();
spin_lock_irq
(
&
elv_list_lock
);
list_add_tail
(
&
e
->
list
,
&
elv_list
);
spin_unlock_irq
(
&
elv_list_lock
);
...
...
drivers/block/ll_rw_blk.c
View file @
0ee40c66
...
...
@@ -2433,13 +2433,15 @@ void disk_round_stats(struct gendisk *disk)
{
unsigned
long
now
=
jiffies
;
if
(
now
==
disk
->
stamp
)
return
;
if
(
disk
->
in_flight
)
{
__disk_stat_add
(
disk
,
time_in_queue
,
disk
->
in_flight
*
(
now
-
disk
->
stamp
));
__disk_stat_add
(
disk
,
io_ticks
,
(
now
-
disk
->
stamp
));
}
disk
->
stamp
=
now
;
if
(
disk
->
in_flight
)
__disk_stat_add
(
disk
,
io_ticks
,
(
now
-
disk
->
stamp_idle
));
disk
->
stamp_idle
=
now
;
}
/*
...
...
fs/partitions/check.c
View file @
0ee40c66
...
...
@@ -430,7 +430,7 @@ void del_gendisk(struct gendisk *disk)
disk
->
flags
&=
~
GENHD_FL_UP
;
unlink_gendisk
(
disk
);
disk_stat_set_all
(
disk
,
0
);
disk
->
stamp
=
disk
->
stamp_idle
=
0
;
disk
->
stamp
=
0
;
devfs_remove_disk
(
disk
);
...
...
include/linux/genhd.h
View file @
0ee40c66
...
...
@@ -119,7 +119,7 @@ struct gendisk {
int
policy
;
atomic_t
sync_io
;
/* RAID */
unsigned
long
stamp
,
stamp_idle
;
unsigned
long
stamp
;
int
in_flight
;
#ifdef CONFIG_SMP
struct
disk_stats
*
dkstats
;
...
...
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