summaryrefslogtreecommitdiff
path: root/drivers/block/xen-blkback/xenbus.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-06-17 19:16:33 (GMT)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2013-06-17 19:17:15 (GMT)
commit8d9256906a97c24e97e016482b9be06ea2532b05 (patch)
treed6e1828f08344fa7f183ea9deddb8b898b26d5ab /drivers/block/xen-blkback/xenbus.c
parent604c499cbbcc3d5fe5fb8d53306aa0fae1990109 (diff)
downloadlinux-fsl-qoriq-8d9256906a97c24e97e016482b9be06ea2532b05.tar.xz
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 <konrad.wilk@oracle.com>. Signed-off-by: Jan Beulich <jbeulich@suse.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/block/xen-blkback/xenbus.c')
0 files changed, 0 insertions, 0 deletions