[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1207161230010.32319@router.home>
Date: Mon, 16 Jul 2012 12:30:09 -0500 (CDT)
From: Christoph Lameter <cl@...ux.com>
To: Joonsoo Kim <js1304@...il.com>
cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, Brice Goglin <brice@...i.com>,
Minchan Kim <minchan@...nel.org>
Subject: Re: [PATCH 4] mm: fix possible incorrect return value of move_pages()
syscall
On Tue, 17 Jul 2012, Joonsoo Kim wrote:
> move_pages() syscall may return success in case that
> do_move_page_to_node_array return positive value which means migration failed.
> This patch changes return value of do_move_page_to_node_array
> for not returning positive value. It can fix the problem.
>
> Signed-off-by: Joonsoo Kim <js1304@...il.com>
> Cc: Brice Goglin <brice@...i.com>
> Cc: Christoph Lameter <cl@...ux.com>
> Cc: Minchan Kim <minchan@...nel.org>
>
> diff --git a/mm/migrate.c b/mm/migrate.c
> index 294d52a..adabaf4 100644
> --- a/mm/migrate.c
> +++ b/mm/migrate.c
> @@ -1171,7 +1171,7 @@ set_status:
> }
>
> up_read(&mm->mmap_sem);
> - return err;
> + return err > 0 ? -EIO : err;
> }
Please use EBUSY.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists