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
nexedi
linux
Commits
8e80645f
Commit
8e80645f
authored
Oct 03, 2002
by
Benjamin LaHaise
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adapt aio kick changes to ingo's work queues
parent
9f7b351d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
fs/aio.c
fs/aio.c
+2
-2
include/linux/aio.h
include/linux/aio.h
+2
-2
No files found.
fs/aio.c
View file @
8e80645f
...
...
@@ -234,7 +234,7 @@ static struct kioctx *ioctx_alloc(unsigned nr_events)
init_waitqueue_head
(
&
ctx
->
wait
);
INIT_LIST_HEAD
(
&
ctx
->
active_reqs
);
INIT_
TQUEUE
(
&
ctx
->
t
q
,
aio_kick_handler
,
ctx
);
INIT_
WORK
(
&
ctx
->
w
q
,
aio_kick_handler
,
ctx
);
if
(
aio_setup_ring
(
ctx
)
<
0
)
goto
out_freectx
;
...
...
@@ -612,7 +612,7 @@ void kick_iocb(struct kiocb *iocb)
spin_lock_irqsave
(
&
ctx
->
ctx_lock
,
flags
);
list_add_tail
(
&
iocb
->
ki_run_list
,
&
ctx
->
run_list
);
spin_unlock_irqrestore
(
&
ctx
->
ctx_lock
,
flags
);
schedule_
task
(
&
ctx
->
t
q
);
schedule_
work
(
&
ctx
->
w
q
);
}
}
...
...
include/linux/aio.h
View file @
8e80645f
...
...
@@ -2,7 +2,7 @@
#define __LINUX__AIO_H
#include <linux/list.h>
#include <linux/
t
queue.h>
#include <linux/
work
queue.h>
#include <linux/aio_abi.h>
#include <asm/atomic.h>
...
...
@@ -134,7 +134,7 @@ struct kioctx {
struct
aio_ring_info
ring_info
;
struct
tq_struct
t
q
;
struct
work_struct
w
q
;
};
/* prototypes */
...
...
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