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
275a082f
Commit
275a082f
authored
Aug 22, 2006
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a real API for dealing with blk_congestion_wait()
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
94a6d753
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
0 deletions
+24
-0
block/ll_rw_blk.c
block/ll_rw_blk.c
+12
-0
fs/nfs/write.c
fs/nfs/write.c
+1
-0
include/linux/blkdev.h
include/linux/blkdev.h
+1
-0
include/linux/writeback.h
include/linux/writeback.h
+1
-0
mm/page-writeback.c
mm/page-writeback.c
+9
-0
No files found.
block/ll_rw_blk.c
View file @
275a082f
...
...
@@ -2734,6 +2734,18 @@ long blk_congestion_wait(int rw, long timeout)
EXPORT_SYMBOL
(
blk_congestion_wait
);
/**
* blk_congestion_end - wake up sleepers on a congestion queue
* @rw: READ or WRITE
*/
void
blk_congestion_end
(
int
rw
)
{
wait_queue_head_t
*
wqh
=
&
congestion_wqh
[
rw
];
if
(
waitqueue_active
(
wqh
))
wake_up
(
wqh
);
}
/*
* Has to be called with the request spinlock acquired
*/
...
...
fs/nfs/write.c
View file @
275a082f
...
...
@@ -396,6 +396,7 @@ int nfs_writepages(struct address_space *mapping, struct writeback_control *wbc)
out:
clear_bit
(
BDI_write_congested
,
&
bdi
->
state
);
wake_up_all
(
&
nfs_write_congestion
);
writeback_congestion_end
();
return
err
;
}
...
...
include/linux/blkdev.h
View file @
275a082f
...
...
@@ -746,6 +746,7 @@ extern void blk_queue_free_tags(request_queue_t *);
extern
int
blk_queue_resize_tags
(
request_queue_t
*
,
int
);
extern
void
blk_queue_invalidate_tags
(
request_queue_t
*
);
extern
long
blk_congestion_wait
(
int
rw
,
long
timeout
);
extern
void
blk_congestion_end
(
int
rw
);
extern
void
blk_rq_bio_prep
(
request_queue_t
*
,
struct
request
*
,
struct
bio
*
);
extern
int
blkdev_issue_flush
(
struct
block_device
*
,
sector_t
*
);
...
...
include/linux/writeback.h
View file @
275a082f
...
...
@@ -85,6 +85,7 @@ int wakeup_pdflush(long nr_pages);
void
laptop_io_completion
(
void
);
void
laptop_sync_completion
(
void
);
void
throttle_vm_writeout
(
void
);
void
writeback_congestion_end
(
void
);
/* These are exported to sysctl. */
extern
int
dirty_background_ratio
;
...
...
mm/page-writeback.c
View file @
275a082f
...
...
@@ -802,6 +802,15 @@ int test_set_page_writeback(struct page *page)
}
EXPORT_SYMBOL
(
test_set_page_writeback
);
/*
* Wakes up tasks that are being throttled due to writeback congestion
*/
void
writeback_congestion_end
(
void
)
{
blk_congestion_end
(
WRITE
);
}
EXPORT_SYMBOL
(
writeback_congestion_end
);
/*
* Return true if any of the pages in the mapping are marged with the
* passed tag.
...
...
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