Quantcast
Channel: lkml.org : Ganesh Sittampalam
Viewing all articles
Browse latest Browse all 627

Re: [PATCH v2 1/3] mm/gup_benchmark: handle gup failures

$
0
0
Linus Torvalds writes: On Thu, Apr 5, 2018 at 2:03 PM, Michael S. Tsirkin <mst@redhat.com> wrote:

[...]

+ i += nr;
Can we just make this robust while at it, and just make it Can we just make this robust while at it, and just make it
        if (nr <= 0)
                break;

instead? Then it doesn't care about zero vs negative error, and
wouldn't get stuck in an endless loop if it got zero.

             Linus


Viewing all articles
Browse latest Browse all 627

Trending Articles