From nobody Mon Apr 29 11:20:26 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1608031758; cv=none; d=zohomail.com; s=zohoarc; b=INXDKCloJa9RNfXJvVuSaRNsRP+yWB4twPg/k3v++UuThkKSxW9WC+EQiiCYFP79XDfj2jgEQC8a0Kd69FTee8WPNsHXgLj/2ZpJN4vH86IkWLLM6exAJrBzwR3mzUGr1PmCA+TxClfsHAoS9USh21AnlsCtz/lRuLquodT+XG0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608031758; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=Yx7SevcBUttZRGBUgn4zpJi1UCc9qXZWWCyxJCQZZZI=; b=JFSzSR1kD+WfQtXBiRVEHQ+W+bSwbpZt3APzofxPCVv6R6HVCuoVs1R/Vmb5ZEvTjORcFSHdok71Ml2bth94DC0pJJREL0h0FW6guVPpPylbEv/I/c4AlDqe2s3FW0wsEM8nQp9iTnIyxEg1BV+/usc8/igXrqf69ruSrdaJHHE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1608031758123878.8687976326893; Tue, 15 Dec 2020 03:29:18 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.53069.92593 (Exim 4.92) (envelope-from ) id 1kp8EQ-00061Z-KQ; Tue, 15 Dec 2020 11:11:02 +0000 Received: by outflank-mailman (output) from mailman id 53069.92593; Tue, 15 Dec 2020 11:11:02 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kp8EQ-00061S-HL; Tue, 15 Dec 2020 11:11:02 +0000 Received: by outflank-mailman (input) for mailman id 53069; Tue, 15 Dec 2020 11:11:01 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kp8EP-00061N-IQ for xen-devel@lists.xenproject.org; Tue, 15 Dec 2020 11:11:01 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id e5c952a7-bc3c-47b9-91d1-7ee7f1708b2e; Tue, 15 Dec 2020 11:10:59 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id BF0FAAC7F; Tue, 15 Dec 2020 11:10:58 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: e5c952a7-bc3c-47b9-91d1-7ee7f1708b2e X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1608030658; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Yx7SevcBUttZRGBUgn4zpJi1UCc9qXZWWCyxJCQZZZI=; b=NV7BwIrwiGRFQaAQ96DIiW1UlD6Hby+vHIu/rM2INcEJ1fag87Bf4iwtbi51xV/LVwhL4h 8vQ2G9q4P3cv2r+JkeedQ6A/lETc6SGYmEbelS/G9TIUSq5fWDNBu0M8Hiqz3azUYnoYa2 yLUH8ytqC/GKmzvACYDQwY9AVnV1Yxw= From: Juergen Gross To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Cc: Juergen Gross , Boris Ostrovsky , Stefano Stabellini Subject: [PATCH v2] xen/xenbus: make xs_talkv() interruptible Date: Tue, 15 Dec 2020 12:10:55 +0100 Message-Id: <20201215111055.3810-1-jgross@suse.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) Content-Type: text/plain; charset="utf-8" In case a process waits for any Xenstore action in the xenbus driver it should be interruptible by signals. Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky wq, test_reply(req)); + ret =3D wait_event_interruptible(req->wq, test_reply(req)); + + if (ret =3D=3D -ERESTARTSYS && signal_pending(current)) { + req->msg.type =3D XS_ERROR; + return ERR_PTR(-EINTR); + } =20 if (!xenbus_ok()) /* --=20 2.26.2