[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47C9AF8F.2050502@redhat.com>
Date: Sat, 01 Mar 2008 20:33:35 +0100
From: Milan Broz <mbroz@...hat.com>
To: device-mapper development <dm-devel@...hat.com>
CC: Ritesh Raj Sarraf <rrs@...earchut.com>,
Herbert Xu <herbert@...dor.apana.org.au>, dm-crypt@...ut.de,
linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
Alasdair G Kergon <agk@...hat.com>,
Christophe Saout <christophe@...ut.de>
Subject: Re: [dm-devel] Re: 2.6.24 Kernel Soft Lock Up with heavy I/O in dm-crypt
(the same patch for 2.6.24)
Milan
--
Add cond_resched() to prevent stuck in big bio processing.
Signed-off-by: Milan Broz <mbroz@...hat.com>
---
drivers/md/dm-crypt.c | 1 +
1 file changed, 1 insertion(+)
Index: linux-2.6.24.3/drivers/md/dm-crypt.c
===================================================================
--- linux-2.6.24.3.orig/drivers/md/dm-crypt.c 2008-02-26 01:20:20.000000000 +0100
+++ linux-2.6.24.3/drivers/md/dm-crypt.c 2008-03-01 16:46:24.000000000 +0100
@@ -374,6 +374,7 @@ static int crypt_convert(struct crypt_co
break;
ctx->sector++;
+ cond_resched();
}
return r;
--
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