From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758274AbYDGWS7 (ORCPT ); Mon, 7 Apr 2008 18:18:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753686AbYDGWSv (ORCPT ); Mon, 7 Apr 2008 18:18:51 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:44257 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755746AbYDGWSv (ORCPT ); Mon, 7 Apr 2008 18:18:51 -0400 Date: Mon, 7 Apr 2008 15:17:24 -0700 (PDT) From: Linus Torvalds To: Pekka J Enberg cc: Hugh Dickins , Peter Zijlstra , Christoph Lameter , James Bottomley , Andrew Morton , FUJITA Tomonori , Jens Axboe , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: fix sense_slab/bio swapping livelock In-Reply-To: Message-ID: References: <1207598115.29991.23.camel@lappy> <47FA8B5A.5090104@cs.helsinki.fi> <47FA8CB0.6070106@cs.helsinki.fi> <47FA937E.6000009@cs.helsinki.fi> <47FA94AE.4070803@cs.helsinki.fi> User-Agent: Alpine 1.00 (LFD 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Apr 2008, Pekka J Enberg wrote: > > So something like the following (totally untested) patch modulo the > pre-allocation bits. Hmm. I didn't check, but won't this cause problems on the freeing path when we call kmem_cache_free() on the result but with the wrong "struct kmem_cache" pointer? Linus