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
e23754f8
Commit
e23754f8
authored
Mar 06, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aio: don't bother with async freeing on failure in ioctx_alloc()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
5d026c72
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
fs/aio.c
fs/aio.c
+5
-7
No files found.
fs/aio.c
View file @
e23754f8
...
...
@@ -248,6 +248,7 @@ static struct kioctx *ioctx_alloc(unsigned nr_events)
struct
mm_struct
*
mm
;
struct
kioctx
*
ctx
;
int
did_sync
=
0
;
int
err
=
-
ENOMEM
;
/* Prevent overflows */
if
((
nr_events
>
(
0x10000000U
/
sizeof
(
struct
io_event
)))
||
...
...
@@ -310,16 +311,13 @@ static struct kioctx *ioctx_alloc(unsigned nr_events)
return
ctx
;
out_cleanup:
__put_ioctx
(
ctx
);
return
ERR_PTR
(
-
EAGAIN
);
err
=
-
EAGAIN
;
aio_free_ring
(
ctx
);
out_freectx:
mmdrop
(
mm
);
kmem_cache_free
(
kioctx_cachep
,
ctx
);
ctx
=
ERR_PTR
(
-
ENOMEM
);
dprintk
(
"aio: error allocating ioctx %p
\n
"
,
ctx
);
return
ctx
;
dprintk
(
"aio: error allocating ioctx %d
\n
"
,
err
);
return
ERR_PTR
(
err
);
}
/* aio_cancel_all
...
...
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