From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751564Ab2LSUAI (ORCPT ); Wed, 19 Dec 2012 15:00:08 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:45250 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750922Ab2LSUAA (ORCPT ); Wed, 19 Dec 2012 15:00:00 -0500 Message-ID: <50D21C93.5050907@canonical.com> Date: Wed, 19 Dec 2012 14:59:15 -0500 From: Joseph Salisbury User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121017 Thunderbird/16.0.1 MIME-Version: 1.0 To: Mike Snitzer CC: "Martin K. Petersen" , Kernel Team , linux-kernel@vger.kernel.org, jgarzik@redhat.com, JBottomley@Parallels.com, Milan Broz Subject: Re: [v3.7 Regression] [SCSI] sd: Implement support for WRITE SAME References: <50CB8C74.3090102@canonical.com> <50D0C971.1000907@canonical.com> <20121219195801.GA14456@redhat.com> In-Reply-To: <20121219195801.GA14456@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/19/2012 02:58 PM, Mike Snitzer wrote: > On Wed, Dec 19 2012 at 11:58am -0500, > Martin K. Petersen wrote: > >>>>>>> "Joseph" == Joseph Salisbury writes: >> Joseph> I captured the netconsole output from boot until I reproduced >> Joseph> the bug. The RIP points to kcryptd_crypt_write_io_submit() in >> Joseph> ~/drivers/md/dm-crypt.c. The output can be seen at: >> >> I'm thinking that dm-crypt should probably set max_write_same_sectors to >> 0. It doesn't really make much sense for a crypto driver to pass that >> command through. >> >> Mike, do you want to look into this? > Milan (cc'd) is more well-versed with dm-crypt. Though we likely need > to audit DM relative to WRITE SAME too (will do once I understand what > added safety/constraints are needed). > > But do we know mount to somwhow be issuing WRITE SAME requests? Martin, > why is it you weren't able to reproduce (I haven't attempted yet)? Martin, were you using the scsi_debug module, or a real scsi device(s)?