Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
7b859fe7
Commit
7b859fe7
authored
Apr 16, 2008
by
Chris Mason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Only do async bio submission for pdflush
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
699122f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+7
-0
No files found.
fs/btrfs/disk-io.c
View file @
7b859fe7
...
...
@@ -381,6 +381,13 @@ int btrfs_wq_submit_bio(struct btrfs_fs_info *fs_info, struct inode *inode,
{
struct
async_submit_bio
*
async
;
/*
* inline writerback should stay inline, only hop to the async
* queue if we're pdflush
*/
if
(
!
current_is_pdflush
())
return
submit_bio_hook
(
inode
,
rw
,
bio
,
mirror_num
);
async
=
kmalloc
(
sizeof
(
*
async
),
GFP_NOFS
);
if
(
!
async
)
return
-
ENOMEM
;
...
...
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