Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2184995ybz; Sun, 26 Apr 2020 13:04:20 -0700 (PDT) X-Google-Smtp-Source: APiQypLW61suuyVlrPgZh1PRUTvEWGJvIez9vRQZJ9EKlFxrLhia69sS8xF7axEYpUNcgvtie/SV X-Received: by 2002:a17:906:a418:: with SMTP id l24mr16540063ejz.362.1587931460673; Sun, 26 Apr 2020 13:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587931460; cv=none; d=google.com; s=arc-20160816; b=Te5gJ0xACe2I0y30aN7UFG5z24pmUz2iI8dcltirqUt/fo5dh1bQgbNA/CrJK7pP53 /Cea6XCHJvbozLLgJxevsRJpErb71lpG6oqswzc8ZKgWcUqQdXV2oNISIOcfZ7nkt+qR lzir7KtBrlBXJu4dvlP9yKh6lV3jy3OxXSBcIH7P9GIXi4e7Voodp4Np6aauBA6zHCI5 o9jWx47ptbIjXCDMK10llx56iE/6b+a5nf5CZRvHPWsMsafHc/gV7WxmoeWL7+YAcEMi vCwMoqSTT0dKvItairgZLtvGLgnsIKmyoH7wOt6z4WYtG6QzKenYrp7BBp8on2wrGsU1 ijzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:subject:cc:to:from; bh=vk6PQs+OCaglwp4NRNBGt1ou/hao/5EotGkY3fUZxE0=; b=I5GsXy/ibjNpUJ8myK+W2gkh4Qq9fkYcTc+Dgoy1HngrCKRjs9KpQACjWMxIMYv9k6 ezQgLq3hidszjslsJuOX52Pkh8abdYpiqSm4l8S2zVFoTQ0k+MGZwCsI8sZtMTtQaNcf lbQ5Dr+MO3Z9ibZG/HF+x7XW9CT4tQy8/mbkB9jZCWK9X6a1hopZZLgZzK9Xjv/xWgAG 3mywNO/HAEaaSWA1gsYTX3J+xngXn7d8CHuiLn7oITlFEp+CJsEGc0tskCuhrucpQ/6d d8tmjRfzEfYM+5BTOZusCvDUGVEE7uNq2+592wqxpklTphhf7DI6xEOS5E9WcsWyO4hB Ev1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a35si2997302edf.377.2020.04.26.13.03.56; Sun, 26 Apr 2020 13:04:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726250AbgDZUAW (ORCPT + 99 others); Sun, 26 Apr 2020 16:00:22 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57658 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726171AbgDZUAW (ORCPT ); Sun, 26 Apr 2020 16:00:22 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 8605C2A092E From: Gabriel Krisman Bertazi To: Mike Snitzer Cc: agk@redhat.com, dm-devel@redhat.com, linux-kernel@vger.kernel.org, khazhy@google.com, kernel@collabora.com Subject: Re: [PATCH 0/2] Historical Service Time Path Selector Organization: Collabora References: <20200416211336.2423618-1-krisman@collabora.com> <20200423205947.GA13657@lobo> Date: Sun, 26 Apr 2020 16:00:17 -0400 In-Reply-To: <20200423205947.GA13657@lobo> (Mike Snitzer's message of "Thu, 23 Apr 2020 16:59:47 -0400") Message-ID: <855zdm2f1q.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mike Snitzer writes: > > Looks like you've put a lot of time to this and I'd be happy to help > you get this to land upstream. > > But... (you knew there'd be at least one "but" right? ;) I'm not > liking making this path selector request-based specific. All other > selectors up to this point are request-based vs bio-based agnostic. > > Would you be open to dropping patch 1/2 and replacing it with > something like the following patch? > > Then you'd pass 'u64 start_time_ns' into the path_selector_type's > .end_io (and possibly .start_io). I think it is fine. Kind of a MD newbie question, but if I understand correctly, dm_start_time_ns_from_clone is only for bio based multipath, and we just pass req->io_start_time directly on request based multipath, right? If I understand the code correctly, start_io_acct is only called for the bio level DM. I will update the patches, do a quick round of tests with BIO based and send a v2. Thanks a lot, -- Gabriel Krisman Bertazi