From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: Re: [PATCH for-4.2 06/14] dm: rename methods that requeue requests Date: Mon, 18 May 2015 11:44:40 -0400 Message-ID: <20150518154440.GD13998@redhat.com> References: <1431637512-64245-1-git-send-email-snitzer@redhat.com> <1431637512-64245-7-git-send-email-snitzer@redhat.com> <20150518082944.GC5439@infradead.org> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20150518082944.GC5439@infradead.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Christoph Hellwig Cc: Jens Axboe , dm-devel@redhat.com List-Id: dm-devel.ids On Mon, May 18 2015 at 4:29am -0400, Christoph Hellwig wrote: > On Thu, May 14, 2015 at 05:05:04PM -0400, Mike Snitzer wrote: > > More often than not a request that is requeued _is_ mapped (meaning the > > clone request is allocated and clone->q is initialized). Rename > > dm_requeue_unmapped_original_request() and dm_requeue_unmapped_request() > > to avoid potential confusion due to function names containing "unmapped". > > Can you also just kill off dm_requeue_unmapped_request / dm_requeue_request > while you're at it? Both callers have the dm_rq_target_io at hand, > so it's rather poinless. Good point, will do. > Also for the blk-mq case please just return BLK_MQ_RQ_QUEUE_BUSY from > ->queue_rq insted of requeing the request. I'll make a note to revisit this (need to audit what, if any, implications doing so has).