]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/orangefs/orangefs-kernel.h
orangefs: delay freeing slot until cancel completes
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 12 Feb 2016 04:07:19 +0000 (23:07 -0500)
committerMike Marshall <hubcap@omnibond.com>
Fri, 19 Feb 2016 18:45:53 +0000 (13:45 -0500)
commit78699e29fd784a4613d254a22627f336c55c4a76
treec3a8d93a89dd7abed775cdd27a9349cbbd0e539c
parent1357d06d49d1f87af48ab768d34af55bff18b0c3
orangefs: delay freeing slot until cancel completes

Make cancels reuse the aborted read/write op, to make sure they do not
fail on lack of memory.

Don't issue a cancel unless the daemon has seen our read/write, has not
replied and isn't being shut down.

If cancel *is* issued, don't wait for it to complete; stash the slot
in there and just have it freed when cancel is finally replied to or
purged (and delay dropping the reference until then, obviously).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/devorangefs-req.c
fs/orangefs/file.c
fs/orangefs/orangefs-cache.c
fs/orangefs/orangefs-kernel.h
fs/orangefs/orangefs-mod.c
fs/orangefs/orangefs-utils.c
fs/orangefs/waitqueue.c