On Thu, Nov 05, 2020 at 04:09:32PM +0000, David Woodhouse wrote:
From: David Woodhouse dwmw@amazon.co.uk
This ended up with an odd mix of recursion (albeit *mostly* tail-recursion) and interation that could have been prettier. In addition, while recursing it potentially adjusted op->count which is used by callers to see the amount of I/O actually performed.
Fix it by bringing nvme_build_prpl() into the normal loop using 'i' as the offset in the op.
Fixes: 94f0510dc ("nvme: Split requests by maximum allowed size") Signed-off-by: David Woodhouse dwmw@amazon.co.uk
Thanks. I committed this change.
-Kevin