This should have a fixme too, this is a bug.
OK
The patch looks OK, but I keep feeling this logic is all really overcomplicated...
I agree, I have a simplification patch for this logic, check out patch 12/14.
Reviewed-by: Jason Gunthorpe jgg@nvidia.com
Thank you for your review.
Pasha