From: Jan Beulich Date: Mon, 17 Jun 2013 19:16:33 +0000 (-0400) Subject: xen/io/ring.h: new macro to detect whether there are too many requests on the ring X-Git-Tag: v3.11-rc3~32^2~9^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d9256906a97c24e97e016482b9be06ea2532b05;p=pandora-kernel.git xen/io/ring.h: new macro to detect whether there are too many requests on the ring Backends may need to protect themselves against an insane number of produced requests stored by a frontend, in case they iterate over requests until reaching the req_prod value. There can't be more requests on the ring than the difference between produced requests and produced (but possibly not yet published) responses. This is a more strict alternative to a patch previously posted by Konrad Rzeszutek Wilk . Signed-off-by: Jan Beulich Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed