]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed: Fix corner case for chain in-between pages
authorTomer Tayar <Tomer.Tayar@qlogic.com>
Mon, 7 Dec 2015 11:25:56 +0000 (06:25 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 19:29:02 +0000 (12:29 -0700)
commitd73ac8a440cbfcbb6928ef78d512359fba180afe
tree13154c025de581270b6c7fdf4b9bd0d59017f695
parentf67831869b8884034b2a5b3c7acfc0326acfbc51
qed: Fix corner case for chain in-between pages

The amount of chain next pointer elements between the producer
and the consumer indices depends on which pages they currently
point to. The current calculation is based only on their difference,
and it can lead to a number of free elements which is higher by 1
than the actual value.

Signed-off-by: Tomer Tayar <Tomer.Tayar@qlogic.com>
Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Orabug: 23732603
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
include/linux/qed/qed_chain.h