Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AE262C433EF for ; Tue, 30 Nov 2021 16:53:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638291202; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=BC3BnbvafWEC3uz2KK+5MQqALCmRx779vwBEEsrVF6M=; b=TDa3u7gY4/PcqzxXjXnARRI4KWr1fKcg7pbJaEcD2RD5KALIQ8hrE6vBHY5zIUz0cx/Ds9 1/iAGynMXwSC4mFEauOqDD/19SuR8RQy5Du8W+I3KF1nE783nH5d2H3ScHf7IyyJKNaC5n 4IEtb57sJn+ydssb4fDnBSipNo99Ij8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-292-JzEbohUIMFOiUKQtAAldlQ-1; Tue, 30 Nov 2021 11:53:19 -0500 X-MC-Unique: JzEbohUIMFOiUKQtAAldlQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B8244874980; Tue, 30 Nov 2021 16:53:13 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 939DC1E6; Tue, 30 Nov 2021 16:53:12 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 999C71809C89; Tue, 30 Nov 2021 16:53:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AUGr6Sk005679 for ; Tue, 30 Nov 2021 11:53:06 -0500 Received: by smtp.corp.redhat.com (Postfix) id B86C1ADD5; Tue, 30 Nov 2021 16:53:06 +0000 (UTC) Received: from octiron.msp.redhat.com (unknown [10.15.80.209]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6BFBC5D9D5; Tue, 30 Nov 2021 16:52:55 +0000 (UTC) Received: from octiron.msp.redhat.com (localhost.localdomain [127.0.0.1]) by octiron.msp.redhat.com (8.14.9/8.14.9) with ESMTP id 1AUGqrFG029576; Tue, 30 Nov 2021 10:52:53 -0600 Received: (from bmarzins@localhost) by octiron.msp.redhat.com (8.14.9/8.14.9/Submit) id 1AUGqqSG029575; Tue, 30 Nov 2021 10:52:52 -0600 Date: Tue, 30 Nov 2021 10:52:51 -0600 From: Benjamin Marzinski To: Martin Wilck Message-ID: <20211130165251.GK19591@octiron.msp.redhat.com> References: <20211118225840.19810-1-mwilck@suse.com> <20211118225840.19810-4-mwilck@suse.com> <20211124204118.GP19591@octiron.msp.redhat.com> <52ddff9a6d2b1813d1269a008eb92ee522c3d6ad.camel@suse.com> <20211129192729.GD19591@octiron.msp.redhat.com> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: dm-devel@redhat.com Cc: lixiaokeng@huawei.com, dm-devel@redhat.com, Chongyun Wu Subject: Re: [dm-devel] [PATCH v2 03/48] libmultipath: add optional wakeup functionality to lock.c X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dm-devel-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Mon, Nov 29, 2021 at 09:52:49PM +0100, Martin Wilck wrote: > On Mon, 2021-11-29 at 13:27 -0600, Benjamin Marzinski wrote: > > On Wed, Nov 24, 2021 at 10:20:53PM +0100, Martin Wilck wrote: > > > On Wed, 2021-11-24 at 14:41 -0600, Benjamin Marzinski wrote: > > > > On Thu, Nov 18, 2021 at 11:57:55PM +0100, mwilck@suse.com=A0wrote: > > > > > From: Martin Wilck > > > > >=20 > > > > > Have struct mutex_lock take an optional wakeup function. > > > > > unlock() is renamed to __unlock() in order to prevent it from > > > > > being called by mistake. > > > > >=20 > > > > > This changes offsets in "struct vectors", requiring a major > > > > > libmultipath version bump. While the strucure is already > > > > > changed, > > > > > in order to avoid this in the future, move the lock to the end > > > > > of "struct vectors". > > > > >=20 > > > > > Signed-off-by: Martin Wilck > > > >=20 > > > > In libmultipath.version, I would have said that set_wakeup_fn was > > > > added > > > > in 10.0.0, instead of 9.2.0, which is a version that never > > > > actually > > > > existed, but I don't think that's going to cause any problems so, > > > >=20 > > > > Reviewed-by: Benjamin Marzinski > > >=20 > > > We should consider whether we want bump the version numbers only > > > when > > > we submit to Christophe, or maybe once per major patch series that > > > touches the ABI. This is something that I could=20 > >=20 > > I suppose that we could just bump the version the first time after a > > push to Christophe that an ABI change is made, and then just make all > > the symbol changes under that version until Christophe makes another > > release. If the first change only caused a minor version bump, and a > > later change needed a major bump we could have two version bumps in a > > release, but I don't think we're getting any benefit from making > > more. > > But once per patchset works fine for me too. >=20 > I agree. Also, I realize that we've bumped the library version too > often in the past. If we add a function, we don't need to bump. Because > a program that needs the added function will require e.g. > foo@LIBMULTIPATH_10.0.0, and this will fail for a library that doesn't > export foo (which is what we want). Likewise for function deletion - a > program that calls the deleted function will fail to link with the > updated library. OTOH, programs that use this version of the ABI > *without* using the functions which are added or removed are unaffected > by the addition / removal. >=20 > The only case in which the ABI version must be bumped is when we have > changed functions or data structures. >=20 > Furthermore, I believe now that the habit (which I introduced) to list > added functions at the end of the .version files, with comments > indicating when they were added, is useless. We should rather keep the > .version file ordered alphabetically. So we not use the minor version anymore?=20 -Ben >=20 > Regards > Martin -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel