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
f0594f08
Commit
f0594f08
authored
Nov 29, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://linux-watchdog.bkbits.net/linux-2.6-watchdog
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
a7e73ca3
8deda24c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
54 deletions
+0
-54
drivers/block/cfq-iosched.c
drivers/block/cfq-iosched.c
+0
-54
No files found.
drivers/block/cfq-iosched.c
View file @
f0594f08
...
@@ -1688,55 +1688,6 @@ cfq_read_key_type(struct cfq_data *cfqd, char *page)
...
@@ -1688,55 +1688,6 @@ cfq_read_key_type(struct cfq_data *cfqd, char *page)
return
len
;
return
len
;
}
}
static
ssize_t
cfq_status_show
(
struct
cfq_data
*
cfqd
,
char
*
page
)
{
struct
list_head
*
entry
;
struct
cfq_queue
*
cfqq
;
ssize_t
len
;
int
i
=
0
,
queues
;
len
=
sprintf
(
page
,
"Busy queues: %u
\n
"
,
cfqd
->
busy_queues
);
len
+=
sprintf
(
page
+
len
,
"key type: %s
\n
"
,
cfq_key_types
[
cfqd
->
key_type
]);
len
+=
sprintf
(
page
+
len
,
"last sector: %Lu
\n
"
,
(
unsigned
long
long
)
cfqd
->
last_sector
);
len
+=
sprintf
(
page
+
len
,
"max time in iosched: %lu
\n
"
,
max_elapsed_dispatch
);
len
+=
sprintf
(
page
+
len
,
"max completion time: %lu
\n
"
,
max_elapsed_crq
);
len
+=
sprintf
(
page
+
len
,
"Busy queue list:
\n
"
);
spin_lock_irq
(
cfqd
->
queue
->
queue_lock
);
list_for_each
(
entry
,
&
cfqd
->
rr_list
)
{
i
++
;
cfqq
=
list_entry_cfqq
(
entry
);
len
+=
sprintf
(
page
+
len
,
" cfqq: key=%lu alloc=%d/%d, "
"queued=%d/%d, last_fifo=%lu, service_used=%lu
\n
"
,
cfqq
->
key
,
cfqq
->
allocated
[
0
],
cfqq
->
allocated
[
1
],
cfqq
->
queued
[
0
],
cfqq
->
queued
[
1
],
cfqq
->
last_fifo_expire
,
cfqq
->
service_used
);
}
len
+=
sprintf
(
page
+
len
,
" busy queues total: %d
\n
"
,
i
);
queues
=
i
;
len
+=
sprintf
(
page
+
len
,
"Empty queue list:
\n
"
);
i
=
0
;
list_for_each
(
entry
,
&
cfqd
->
empty_list
)
{
i
++
;
cfqq
=
list_entry_cfqq
(
entry
);
len
+=
sprintf
(
page
+
len
,
" cfqq: key=%lu alloc=%d/%d, "
"queued=%d/%d, last_fifo=%lu, service_used=%lu
\n
"
,
cfqq
->
key
,
cfqq
->
allocated
[
0
],
cfqq
->
allocated
[
1
],
cfqq
->
queued
[
0
],
cfqq
->
queued
[
1
],
cfqq
->
last_fifo_expire
,
cfqq
->
service_used
);
}
len
+=
sprintf
(
page
+
len
,
" empty queues total: %d
\n
"
,
i
);
queues
+=
i
;
len
+=
sprintf
(
page
+
len
,
"Total queues: %d
\n
"
,
queues
);
spin_unlock_irq
(
cfqd
->
queue
->
queue_lock
);
return
len
;
}
#define SHOW_FUNCTION(__FUNC, __VAR, __CONV) \
#define SHOW_FUNCTION(__FUNC, __VAR, __CONV) \
static ssize_t __FUNC(struct cfq_data *cfqd, char *page) \
static ssize_t __FUNC(struct cfq_data *cfqd, char *page) \
{ \
{ \
...
@@ -1824,10 +1775,6 @@ static struct cfq_fs_entry cfq_clear_elapsed_entry = {
...
@@ -1824,10 +1775,6 @@ static struct cfq_fs_entry cfq_clear_elapsed_entry = {
.
attr
=
{.
name
=
"clear_elapsed"
,
.
mode
=
S_IWUSR
},
.
attr
=
{.
name
=
"clear_elapsed"
,
.
mode
=
S_IWUSR
},
.
store
=
cfq_clear_elapsed
,
.
store
=
cfq_clear_elapsed
,
};
};
static
struct
cfq_fs_entry
cfq_misc_entry
=
{
.
attr
=
{.
name
=
"show_status"
,
.
mode
=
S_IRUGO
},
.
show
=
cfq_status_show
,
};
static
struct
cfq_fs_entry
cfq_key_type_entry
=
{
static
struct
cfq_fs_entry
cfq_key_type_entry
=
{
.
attr
=
{.
name
=
"key_type"
,
.
mode
=
S_IRUGO
|
S_IWUSR
},
.
attr
=
{.
name
=
"key_type"
,
.
mode
=
S_IRUGO
|
S_IWUSR
},
.
show
=
cfq_read_key_type
,
.
show
=
cfq_read_key_type
,
...
@@ -1845,7 +1792,6 @@ static struct attribute *default_attrs[] = {
...
@@ -1845,7 +1792,6 @@ static struct attribute *default_attrs[] = {
&
cfq_back_max_entry
.
attr
,
&
cfq_back_max_entry
.
attr
,
&
cfq_back_penalty_entry
.
attr
,
&
cfq_back_penalty_entry
.
attr
,
&
cfq_clear_elapsed_entry
.
attr
,
&
cfq_clear_elapsed_entry
.
attr
,
&
cfq_misc_entry
.
attr
,
NULL
,
NULL
,
};
};
...
...
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