From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 83E4E6C7D7; Tue, 27 Apr 2021 00:56:37 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 83E4E6C7D7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1619474197; bh=8mTwhZ8HTM/cXeecP73y0oNN3MdFkf4nXqMcpNnMfwE=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=w3ZgDwmnUX91KeYHGvzi0Simz/Fwa3UvjccQZcSxRsbhZ4fsPU4z6NzNcgLcIYqee R4yQIPGP1htNa+DSjP+sc2njJF+DOgxAxFKl0w3Kne9E+XwX4z3oLEj8hKE+3C4jNE jVaMAdQiC0FjZ7iKDBUbGRoBt5pvnM3AfpwB88YA= Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 1C5D66FC8F for ; Tue, 27 Apr 2021 00:56:36 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 1C5D66FC8F Received: by mail-lf1-f48.google.com with SMTP id h36so36404612lfv.7 for ; Mon, 26 Apr 2021 14:56:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=mSusCV75ZJR3KrH5fHJ6/lYvC7Q4hXB0VLU0Y6sAEhk=; b=RaI2sLtI9F+jUwoJx9yeTs8n3S7CN++kEtrjWYOrNB6L4gEzM7FKWgeLof/RjDaznb BRa892xwDEGZRNjPRp65ooe+9Kllin11q0dfbOQZdQ5e9N8sPwB8CKL0GlJBHFTWF0w/ 74CgDQcukGePwllbmnNYPI/U1IqAP7fcuu88d5vZuscJS/zPiBpwoinzUqaicBCnHhc9 /fHV7UVRwawy0RlQY1fE1Luz22KM+5gyg70MO95qoWkliZamNwXOS+cy6WQ3cqIz6Ict CSCI78OYfd/zFgJurePa6Q2lcaVWRJOId5qsKVDvAvjp2rdxQLxsE7J/AkpZzAQSMGo+ yWBA== X-Gm-Message-State: AOAM531lSuScfzCb7xZrUfL3P74nnssZ3vHXu/yjbxj5sufEQuDqSbrP I2rzazQ81SG62R9iu+CLjiR/T4BWIDE= X-Google-Smtp-Source: ABdhPJwSlBEAgJcmTGGOA7j7UkTTLYyX58sWwFedb9iyQQPIRTlzJxxIsvmaE5qDhk3g1nRh7dpXEw== X-Received: by 2002:a19:850b:: with SMTP id h11mr15045494lfd.342.1619474195220; Mon, 26 Apr 2021 14:56:35 -0700 (PDT) Received: from grain.localdomain ([5.18.199.94]) by smtp.gmail.com with ESMTPSA id p36sm1523615lfa.227.2021.04.26.14.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Apr 2021 14:56:34 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 00C5156016D; Tue, 27 Apr 2021 00:56:32 +0300 (MSK) Date: Tue, 27 Apr 2021 00:56:32 +0300 To: Vladislav Shpilevoy Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.0.5 (2021-01-21) Subject: Re: [Tarantool-patches] [PATCH 0/2] fiber_wakeup() nop on self X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Cyrill Gorcunov via Tarantool-patches Reply-To: Cyrill Gorcunov Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" On Sat, Apr 24, 2021 at 01:15:52AM +0200, Vladislav Shpilevoy wrote: > The patchset makes fiber_wakeup() in C and fiber.wakeup() in Lua > nop when called on the current fiber. This fixes a couple of > crashes in the public API, and prevent spurious wakeups in > certain cases. > > Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-5292-6043-fiber-wakeup-nop > Issue: https://github.com/tarantool/tarantool/issues/5292 > Issue: https://github.com/tarantool/tarantool/issues/6043 > > Vladislav Shpilevoy (2): > fiber: make wakeup in Lua and C nop on self > fiber: use wakeup safely on self everywhere Ack