From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751451AbdJNXQs (ORCPT ); Sat, 14 Oct 2017 19:16:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54724 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbdJNXQq (ORCPT ); Sat, 14 Oct 2017 19:16:46 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 7366CC04AC49 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=ming.lei@redhat.com Date: Sun, 15 Oct 2017 07:16:28 +0800 From: Ming Lei To: Oleksandr Natalenko Cc: Jens Axboe , linux-block@vger.kernel.org, Christoph Hellwig , Bart Van Assche , Laurence Oberman , Paolo Valente , Tom Nguyen , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Omar Sandoval , John Garry Subject: Re: [PATCH V10 0/8] blk-mq-sched: improve sequential I/O performance Message-ID: <20171014231627.GA17485@ming.t460p> References: <20171014092232.13943-1-ming.lei@redhat.com> <7774487.lQXyKRvAUb@natalenko.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7774487.lQXyKRvAUb@natalenko.name> User-Agent: Mutt/1.8.3 (2017-05-23) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Sat, 14 Oct 2017 23:16:46 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 14, 2017 at 07:38:29PM +0200, Oleksandr Natalenko wrote: > Hi. > > By any chance, could this be backported to 4.14? I'm confused with "SCSI: > allow to pass null rq to scsi_prep_state_check()" since it uses refactored > flags. > > === > if (req && !(req->rq_flags & RQF_PREEMPT)) > === > > Is it safe to revert to REQ_PREEMPT here, or rq_flags should also be replaced > with cmd_flags? Hi Oleksandr, Inside scsi_mq_get_budget(), req is passed as null, and RQF_PREEMPT won't be checked at all. Thanks, Ming