* Patch "lightnvm: put bio before return" has been added to the 4.4-stable tree
@ 2016-09-20 12:13 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2016-09-20 12:13 UTC (permalink / raw)
To: ww.tao0320, axboe, ben.hutchings, gregkh, m; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
lightnvm: put bio before return
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
lightnvm-put-bio-before-return.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From 16c6d048d7b74249a4387700887e8adb13028866 Mon Sep 17 00:00:00 2001
From: Wenwei Tao <ww.tao0320@gmail.com>
Date: Thu, 4 Feb 2016 15:13:23 +0100
Subject: lightnvm: put bio before return
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Wenwei Tao <ww.tao0320@gmail.com>
commit 16c6d048d7b74249a4387700887e8adb13028866 upstream.
The bio is not returned if the data page cannot be allocated.
Signed-off-by: Wenwei Tao <ww.tao0320@gmail.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/lightnvm/rrpc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- a/drivers/lightnvm/rrpc.c
+++ b/drivers/lightnvm/rrpc.c
@@ -287,8 +287,10 @@ static int rrpc_move_valid_pages(struct
}
page = mempool_alloc(rrpc->page_pool, GFP_NOIO);
- if (!page)
+ if (!page) {
+ bio_put(bio);
return -ENOMEM;
+ }
while ((slot = find_first_zero_bit(rblk->invalid_pages,
nr_pgs_per_blk)) < nr_pgs_per_blk) {
Patches currently in stable-queue which might be from ww.tao0320@gmail.com are
queue-4.4/lightnvm-put-bio-before-return.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-20 12:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-20 12:13 Patch "lightnvm: put bio before return" has been added to the 4.4-stable tree gregkh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.