Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754068AbZDPGHg (ORCPT ); Thu, 16 Apr 2009 02:07:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752285AbZDPGHY (ORCPT ); Thu, 16 Apr 2009 02:07:24 -0400 Received: from hera.kernel.org ([140.211.167.34]:53865 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752095AbZDPGHX (ORCPT ); Thu, 16 Apr 2009 02:07:23 -0400 Message-ID: <49E6CB0D.3060307@kernel.org> Date: Thu, 16 Apr 2009 15:07:09 +0900 From: Tejun Heo User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: petkovbb@gmail.com, Tejun Heo , FUJITA Tomonori , bharrosh@panasas.com, James.Bottomley@hansenpartnership.com, linux-scsi@vger.kernel.org, axboe@kernel.dk, bzolnier@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 14/17] scsi: replace custom rq mapping with blk_rq_map_kern_sgl() References: <49E6A0B5.2090704@kernel.org> <20090416054457.GA13226@liondog.tnic> In-Reply-To: <20090416054457.GA13226@liondog.tnic> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (hera.kernel.org [127.0.0.1]); Thu, 16 Apr 2009 06:07:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2152 Lines: 54 Hello, Borislav. Borislav Petkov wrote: > Hi, > > On Thu, Apr 16, 2009 at 12:06:29PM +0900, Tejun Heo wrote: >> I updated the patch a bit and folded it into the series after patch >> 10. I hope I didn't butcher the patch too bad. Can I add your >> Signed-off-by: on the modified patch? Also, I just started working on >> the atapi version. Do you already have something? > > Ok here's what I got: I went and converted all ide-cd and ide-atapi to > using a common routine ide_prep_sense, see following patches for that. > Preliminary testing is promising but you never know :). Cool. I'll take a look. > I put the request_sense buffer as defined in into the > drive struct so that each device can have its own buffer. IMHO, request > sense standard data should be pretty identical across most ATAPI devices > (yeah, I'm sure there are exceptions :)). We might move the struct > request_sense to a more generic location instead of if > we decide to go with that. Okay. >> * Both user and kernel PC requests expect sense data to be stored >> in separate storage other than info->sense_data. Copy sense >> data to rq->sense on completion if rq->sense is not NULL. This >> fixes bogus sense data on PC requests. > > I took that into my version of the patch. > > Anyway, please do have a closer look in case I've missed something. Of > course you can split them the way you see fit, there's more to be done > there anyways but should suffice for your block layer stuff, I hope. There was another problem. If we use blk_rq_map_kern() the failed rq must be finished after the sense rq is finished because that's when the bio is copied back if it was copied. Before sense_rq completion, the sense buffer doesn't contain any valid data. Anyways, I'll review your patchset and integrate it with mine. Please standby a bit. Thanks. -- tejun -- 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/