[SeaBIOS] Re: [PATCH v2] nvme: Clean up nvme_cmd_readwrite()

2020-11-05 Thread David Woodhouse
On Thu, 2020-11-05 at 16:09 +, David Woodhouse wrote: > From: David Woodhouse > > 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

[SeaBIOS] [PATCH v2] nvme: Clean up nvme_cmd_readwrite()

2020-11-05 Thread David Woodhouse
From: David Woodhouse 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

[SeaBIOS] Re: [PATCH] nvme: Clean up nvme_cmd_readwrite()

2020-11-05 Thread David Woodhouse
On Wed, 2020-11-04 at 23:27 +, Graf (AWS), Alexander wrote: > > Am 31.10.2020 um 00:49 schrieb David Woodhouse : > > > > From: David woodhouse > > > > This ended up with an odd mix of recursion (albeit *mostly* tail-recursion) > > and interation that could have been prettier. Make it