[PATCH] splice: fix double page unlock
authorJens Axboe <jens.axboe@oracle.com>
Fri, 20 Jul 2007 13:21:36 +0000 (15:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 25 Aug 2007 15:24:04 +0000 (17:24 +0200)
commit07acaa4834f61f28e7ea98cdb54ccc57a5c8af74
tree20641787dda538465ed1eb88c0287b9c1d179d6f
parentf97119d87106f6bbb3f1e829f53b638c522f23a5
[PATCH] splice: fix double page unlock

If add_to_page_cache_lru() fails, the page will not be locked. But
splice jumps to an error path that does a page release and unlock,
causing a BUG() in unlock_page().

Fix this by adding one more label that just releases the page. This bug
was actually triggered on EL5 by gurudas pai <gurudas.pai@oracle.com>
using fio.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/splice.c