Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756483AbXK3V63 (ORCPT ); Fri, 30 Nov 2007 16:58:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753130AbXK3V6Q (ORCPT ); Fri, 30 Nov 2007 16:58:16 -0500 Received: from pne-smtpout3-sn1.fre.skanova.net ([81.228.11.120]:51643 "EHLO pne-smtpout3-sn1.fre.skanova.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751296AbXK3V6P (ORCPT ); Fri, 30 Nov 2007 16:58:15 -0500 Date: Fri, 30 Nov 2007 23:58:10 +0200 From: Sami Farin To: Linux kernel Mailing List Subject: drivers/char/random.c:write_pool() -- cond_resched needed? Message-ID: <20071130215810.d3m43bwobifihfiu@m.safari.iki.fi> Mail-Followup-To: Linux kernel Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-30) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 506 Lines: 12 In write_pool(), isn't cond_resched() needed after call to add_entropy_words() because otherwise there can be large latencies (think of command "dd if=/dev/zero of=/dev/random bs=100000000" ) ? -- Do what you love because life is too short for anything else. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/