Skip to content
Commit b2edffdd authored by Al Viro's avatar Al Viro
Browse files

fix mremap() vs. ioctx_kill() race



teach ->mremap() method to return an error and have it fail for
aio mappings in process of being killed

Note that in case of ->mremap() failure we need to undo move_page_tables()
we'd already done; we could call ->mremap() first, but then the failure of
move_page_tables() would require undoing whatever _successful_ ->mremap()
has done, which would be a lot more headache in general.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 8f778bbc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment