https://github.com/torvalds/linux
Revision a84b69cb6e0a41e86bc593904faa6def3b957343 authored by Al Viro on 04 July 2015, 20:04:19 UTC, committed by Al Viro on 04 July 2015, 20:04:19 UTC
If we'd already sent a request and decide to abort it, we *must*
issue TFLUSH properly and not just blindly reuse the tag, or
we'll get seriously screwed when response eventually arrives
and we confuse it for response to later request that had reused
the same tag.

Cc: stable@vger.kernel.org # v3.2 and later
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 43c3dd0
Raw File
Tip revision: a84b69cb6e0a41e86bc593904faa6def3b957343 authored by Al Viro on 04 July 2015, 20:04:19 UTC
9p: forgetting to cancel request on interrupted zero-copy RPC
Tip revision: a84b69c
interval_tree.c
#include <linux/interval_tree.h>
#include <linux/interval_tree_generic.h>
#include <linux/compiler.h>
#include <linux/export.h>

#define START(node) ((node)->start)
#define LAST(node)  ((node)->last)

INTERVAL_TREE_DEFINE(struct interval_tree_node, rb,
		     unsigned long, __subtree_last,
		     START, LAST,, interval_tree)

EXPORT_SYMBOL_GPL(interval_tree_insert);
EXPORT_SYMBOL_GPL(interval_tree_remove);
EXPORT_SYMBOL_GPL(interval_tree_iter_first);
EXPORT_SYMBOL_GPL(interval_tree_iter_next);
back to top