Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759478AbaGPLQJ (ORCPT ); Wed, 16 Jul 2014 07:16:09 -0400 Received: from verein.lst.de ([213.95.11.211]:42854 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757199AbaGPLQH (ORCPT ); Wed, 16 Jul 2014 07:16:07 -0400 Date: Wed, 16 Jul 2014 13:16:02 +0200 From: Christoph Hellwig To: Mike Christie Cc: Christoph Hellwig , James Bottomley , Jens Axboe , Bart Van Assche , Robert Elliott , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 13/14] scsi: add support for a blk-mq based I/O path. Message-ID: <20140716111602.GA20623@lst.de> References: <1403715121-1201-1-git-send-email-hch@lst.de> <1403715121-1201-14-git-send-email-hch@lst.de> <53C65E51.3090003@cs.wisc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53C65E51.3090003@cs.wisc.edu> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 16, 2014 at 06:13:21AM -0500, Mike Christie wrote: > I see the request timer is started before calling queue_rq, but I could > not figure out what the cancel_delayed_work here is for exactly. It > seems if the request were to time out and the eh started while queue_rq > was running we could end up some nasty bugs like the requested requeued > twice. > > Is the cancel_delayed_work call just to be safe or is supposed to be > handling a case where the abort_work could be queued at this time up due > to a request timing out while queue_rq is running? Is this case mq specific? It was cargo cult copy & paste from the old path. I've merged a patch from Bart to remove it from the old code, so it should go away here as well, thanks for the reminder. -- 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/