Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755453AbcCAXzA (ORCPT ); Tue, 1 Mar 2016 18:55:00 -0500 Received: from mail177-1.suw61.mandrillapp.com ([198.2.177.1]:43852 "EHLO mail177-1.suw61.mandrillapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755420AbcCAXy5 (ORCPT ); Tue, 1 Mar 2016 18:54:57 -0500 From: Greg Kroah-Hartman Subject: [PATCH 4.4 063/342] bcache: Add a cond_resched() call to gc X-Mailer: git-send-email 2.7.2 To: Cc: Greg Kroah-Hartman , , Takashi Iwai , Eric Wheeler , Kent Overstreet , Jens Axboe Message-Id: <20160301234530.037743897@linuxfoundation.org> In-Reply-To: <20160301234527.990448862@linuxfoundation.org> References: <20160301234527.990448862@linuxfoundation.org> X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@mandrill.com X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=30481620.f4c478ccfafa4ac8948f0cb8bbea9710 X-Mandrill-User: md_30481620 Date: Tue, 01 Mar 2016 23:54:04 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 806 Lines: 28 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kent Overstreet commit c5f1e5adf956e3ba82d204c7c141a75da9fa449a upstream. Signed-off-by: Takashi Iwai Tested-by: Eric Wheeler Cc: Kent Overstreet Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- drivers/md/bcache/btree.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/md/bcache/btree.c +++ b/drivers/md/bcache/btree.c @@ -1741,6 +1741,7 @@ static void bch_btree_gc(struct cache_se do { ret = btree_root(gc_root, c, &op, &writes, &stats); closure_sync(&writes); + cond_resched(); if (ret && ret != -EAGAIN) pr_warn("gc failed!");