Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2365515imm; Thu, 2 Aug 2018 10:20:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdnrE9m+w71bK5I+fU6aW+ebepnh55AKbvGtfIFx3eF3dr0W/M3k3gQdcL1RENb5FXvUfUr X-Received: by 2002:a63:6345:: with SMTP id x66-v6mr341025pgb.43.1533230419122; Thu, 02 Aug 2018 10:20:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533230419; cv=none; d=google.com; s=arc-20160816; b=aTM085pMgd+7a9sMQEzuGviqGQt24/rPHcCWpON5Y17gHJtVBEwwdbN7IVJL71/ElB DNVVpV+3V/34kI2JG86QGIMLAwez8e7gSA4hgcJC2G/oeCvvNWZ3YvfTovCQOKhHmqbo qTPgkqlOrVPjIcqCJ624a2GPZSvQrYav1q7y/83YCSCLyPTC2HT03M/TRgT/cyjPEAMI qGOUqfCyh/1Gpsyr8hEoVLxiUHDlsbm+h1m6VE8CELzFUdZniijpba6MwQPiDoTRfkSR c5+Sy79LgtuJex1bfxV3MqyOTSoe4edpbcTfsiqH57Vd8GykCzgyFKnT5fAU9ZzcNodX lEYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=e5pTrzK8QujVxsQZqdTJrqrKWEUTFH1LxWSFD8aO/kE=; b=GICysyKyeRB/loGGLp/j5IcD0phxnDpSfjdoAQHcu6PxvR7CqM53g+wzltxE5vOgQ7 JzdS7ckTgh5Ruqxj7jQXHpQwI/X/WCHmDTHOhLqL14ZePr+KdJolJ0PunfOMsXczK3+2 LJplLijH2jS2eGwCULgMIWlI4F+9FdQdAYrsUC3jZQyjkQXpIgQntAdSLEiKaXN4iTIW a+qnrtUhlgZNOPUqyK3+GzYQT2ehRAcFE33SIq8ksV9Q8cJ6N7xb8IUnyNpVFYA7m7rf J53gD4A7+y1YRiXBOWJfUGiCYFp2l5hb1ULEeVAOb6h8bG8SCplKJDH3U/YdPI/hfSm+ uItg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u34-v6si2721014pgl.331.2018.08.02.10.20.01; Thu, 02 Aug 2018 10:20:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732087AbeHBTJn (ORCPT + 99 others); Thu, 2 Aug 2018 15:09:43 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:41508 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726938AbeHBTJn (ORCPT ); Thu, 2 Aug 2018 15:09:43 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 570224219DB4; Thu, 2 Aug 2018 17:17:40 +0000 (UTC) Received: from ming.t460p (ovpn-12-120.pek2.redhat.com [10.72.12.120]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 95F1810CD7D5; Thu, 2 Aug 2018 17:17:29 +0000 (UTC) Date: Fri, 3 Aug 2018 01:17:24 +0800 From: Ming Lei To: Bart Van Assche Cc: "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , "jianchao.w.wang@oracle.com" , "axboe@kernel.dk" Subject: Re: [RFC] blk-mq: clean up the hctx restart Message-ID: <20180802171723.GD8928@ming.t460p> References: <1533009735-2221-1-git-send-email-jianchao.w.wang@oracle.com> <20180731045805.GE15701@ming.t460p> <8a3383e6-2926-6858-d8f2-671f3cb9e460@oracle.com> <20180731061616.GF15701@ming.t460p> <42371198-2a4b-1062-3564-411645ffba98@oracle.com> <20180801085841.GA27962@ming.t460p> <9feaa41702ef6fcc00ce1b8aa19bbe179edf4e3f.camel@wdc.com> <20180802165831.GB8928@ming.t460p> <7c933e7e60831f985297d8cc5a540171fc921f44.camel@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7c933e7e60831f985297d8cc5a540171fc921f44.camel@wdc.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 02 Aug 2018 17:17:40 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 02 Aug 2018 17:17:40 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'ming.lei@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 02, 2018 at 05:08:55PM +0000, Bart Van Assche wrote: > On Fri, 2018-08-03 at 00:58 +0800, Ming Lei wrote: > > And about the situations you mentioned, no any special as normal cases > > or thousands of LUNs. Just a batch of queues are waken up from one > > single wait queue(sbq_wait_state), and inside each wait queue, queues > > are handled actually in FIFO order. > > > > Or what is your expected ideal behaviour about fairness? > > Hello Ming, > > What I expect is if the number of LUNs is really large that all LUNs are treated > equally. Unless someone can set up a test that demonstrates that this is still Some of idle LUNs shouldn't be treated equally as other LUNs which need to serve. Also as I mentioned, the original RR style isn't better than the new way actually, since now we handle queues in sort of FIFO style, thanks wait queue. Not mentioning big CPU utilization is consumed unnecessarily for iterating over all queues even though there is only one active queue, is this fair from system view? Thanks, Ming