From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: Re: [PATCH] sd: Reshuffle init_sd to avoid crash Date: Wed, 10 Oct 2012 12:49:24 +0100 Message-ID: <1349869764.2452.20.camel@dabdike.int.hansenpartnership.com> References: <1349858171-29358-1-git-send-email-hare@suse.de> <1349862941.2452.11.camel@dabdike.int.hansenpartnership.com> <50754765.8040304@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from bedivere.hansenpartnership.com ([66.63.167.143]:32891 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751144Ab2JJLt1 (ORCPT ); Wed, 10 Oct 2012 07:49:27 -0400 In-Reply-To: <50754765.8040304@suse.de> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Hannes Reinecke Cc: linux-scsi@vger.kernel.org, "Joel D. Diaz" On Wed, 2012-10-10 at 12:01 +0200, Hannes Reinecke wrote: > On 10/10/2012 11:55 AM, James Bottomley wrote: > > On Wed, 2012-10-10 at 10:36 +0200, Hannes Reinecke wrote: > >> scsi_register_driver will register a prep_fn() function, which > >> in turn migh need to use the sd_cdp_pool for DIF. > >> Which hasn't been initialised at this point, leading to > >> a crash. So reshuffle the init_sd() and exit_sd() paths > >> to have the driver registered last. > >> > >> Signed-off-by: Joel D. Diaz > >> Signed-off-by: Hannes Reinecke > > > > Explain what these signoffs mean, since the patch is sent with you as > > the author. > > > Ah. Sorry. > Joel Diaz send the patch relative to SLES11 SP2, and I ported / send > it to mainline. > > So yeah, Joel is actually the author. > Should I send an updated patch? That's OK, I can fix this up on the fly (this time). James