From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [patchset 0/4] osd: Stop usage of blk_rq_append_bio Date: Sat, 09 May 2009 17:12:58 +0900 Message-ID: <4A053B0A.9010501@kernel.org> References: <4A0307F4.50205@panasas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from hera.kernel.org ([140.211.167.34]:39523 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752427AbZEIIOg (ORCPT ); Sat, 9 May 2009 04:14:36 -0400 In-Reply-To: <4A0307F4.50205@panasas.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Boaz Harrosh Cc: Jens Axboe , James Bottomley , FUJITA Tomonori , Jeff Garzik , linux-scsi , open-osd mailing-list , "Nicholas A. Bellinger" Boaz Harrosh wrote: > Osd library needs to submit pre-allocated bios, form several sources. > osdblk exofs and pNFS-layout driver all have prepared bios for IO submission. > On top of that the osd library needs to append additional segments to the > IO memory, for get/set attributes and more. > > All these are done today by use of a temporary hack - blk_rq_append_bio. > This is bad on few accounts. > 1. blk_rq_append_bio was not meant to be exported and is very specific to its users. > 2. blk_rq_append_bio does not support chained bios. > 3. blk_rq_append_bio does not bounce the bio and therefore current osd implementation > has a bug. > > The proposed solution adds two new fixtures to the block layer, and a corresponding > fixing patch to osd. These are: > > [PATCH 1/4] allow blk_rq_map_kern to append to requests blk_rq_map_kern() part of modification looks good to me. Thanks. -- tejun