From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from hd5b91d02.k46641.sta.perspektivbredband.net ([213.185.29.2] helo=fg-dc1.flatfrog.local) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RqR6O-0001NA-Rc for linux-mtd@lists.infradead.org; Thu, 26 Jan 2012 15:19:05 +0000 Message-ID: <4F216EE0.5070600@flatfrog.com> Date: Thu, 26 Jan 2012 16:18:56 +0100 From: Orjan Friberg MIME-Version: 1.0 To: Joakim Tjernlund Subject: Re: JFFS2 oops when writing to two partitions simultaneously References: <4F1E802D.5010402@flatfrog.com> <4F1EE749.6020801@flatfrog.com> <4F1F004C.6040501@flatfrog.com> <4F205DBA.2090103@flatfrog.com> <4F206D8F.5010206@flatfrog.com> <4F21168F.4000800@flatfrog.com> <4F214C52.5050300@flatfrog.com> <4F215E0B.107@flatfrog.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: "linux-mtd@lists.infradead.org" List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 01/26/2012 04:09 PM, Joakim Tjernlund wrote: > Maybe you can get away with removing the extra lock dropping around kfree/kmalloc > and if you do, you can simply the code to something like: But you'd still need to hold the lock over this->compress(data_in, this->compr_buf, datalen, cdatalen); right? -- Orjan Friberg FlatFrog Laboratories AB