Merge "aio: hold an extra file reference over AIO read/write operations"
This commit is contained in:
commit
55056d7ec9
1 changed files with 2 additions and 0 deletions
2
fs/aio.c
2
fs/aio.c
|
@ -1470,6 +1470,7 @@ rw_common:
|
||||||
|
|
||||||
len = ret;
|
len = ret;
|
||||||
|
|
||||||
|
get_file(file);
|
||||||
if (rw == WRITE)
|
if (rw == WRITE)
|
||||||
file_start_write(file);
|
file_start_write(file);
|
||||||
|
|
||||||
|
@ -1477,6 +1478,7 @@ rw_common:
|
||||||
|
|
||||||
if (rw == WRITE)
|
if (rw == WRITE)
|
||||||
file_end_write(file);
|
file_end_write(file);
|
||||||
|
fput(file);
|
||||||
kfree(iovec);
|
kfree(iovec);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue