From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [patch 1/2]block: handle merged discard request Date: Mon, 20 Aug 2012 09:58:54 -0400 Message-ID: <20120820135854.GA19254@infradead.org> References: <4F69C62C.7020604@kernel.org> <20120620085724.GA26295@infradead.org> <20120820135739.GB28570@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:37749 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754975Ab2HTN7D (ORCPT ); Mon, 20 Aug 2012 09:59:03 -0400 Content-Disposition: inline In-Reply-To: <20120820135739.GB28570@redhat.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Mike Snitzer Cc: "Martin K. Petersen" , Christoph Hellwig , Shaohua Li , Vivek Goyal , axboe@kernel.dk, linux-kernel@vger.kernel.org, neilb@suse.de, linux-scsi@vger.kernel.org On Mon, Aug 20, 2012 at 09:57:39AM -0400, Mike Snitzer wrote: > But I haven't put my finger on _why_ a discard bio has bio->bi_io_vec > (but given my use of DM, bio comes from bio_alloc_bioset, and DM passes > original bio->bi_max_vecs for nr_iovecs). TRIM has a payload and we cheay by preallocation a data page for it.