]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
orangefs: sanitize handling of request list
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 13 Feb 2016 15:38:23 +0000 (10:38 -0500)
committerMike Marshall <hubcap@omnibond.com>
Fri, 19 Feb 2016 18:45:53 +0000 (13:45 -0500)
commit98815ade9eaca3c4729710129a651aa0b43d007a
tree456464c4342123ba153ac0f7eae959d0b973592f
parentd2d87a3b6df3088a991e277d42cd6a549ff2bc66
orangefs: sanitize handling of request list

* checking that daemon is running (to decide whether we want to limit
the timeout) should be done *after* the damn thing is included into
the list; doing that before means that if the daemon gets shut down
in between, we'll end up waiting indefinitely (== up to kill -9).

* cancels should go into the head of the queue - the sooner they
are picked, the less work daemon has to do and the sooner we get to
free the slot held by aborted operation.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/waitqueue.c