From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8B4BC433E0 for ; Mon, 15 Mar 2021 11:58:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 73F9264E74 for ; Mon, 15 Mar 2021 11:58:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229748AbhCOL6V (ORCPT ); Mon, 15 Mar 2021 07:58:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230512AbhCOL57 (ORCPT ); Mon, 15 Mar 2021 07:57:59 -0400 Received: from hr2.samba.org (hr2.samba.org [IPv6:2a01:4f8:192:486::2:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EA34C061574 for ; Mon, 15 Mar 2021 04:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org; s=42; h=Message-Id:Date:Cc:To:From; bh=e4BOt8hBBHUs6LXZMInRLpx+oxcb6taGQ0UMYz8+j1A=; b=kxLjbQu3ET/E6Mm/135vMWZKhn g43uZS3JMToDrImiBbohIVVYnDNn/yEhLhNEEImKgd1NDsFWcOo6okj1srI+YYjEIgzBEm3U5q2vl r8+jpIyF264mRj///XaJuo5AFKttiQgPzKxidlusH3JDbAlhDgvbvjCA1YNWRKH1/oWpiBy0I+U81 Z1S1nWF3DtwofN52C5NbSQTAg6gcq0a4Zwm9BPcqSu1RAYjSlZHdCZ8wcyK5CuK0feLIBhRKUWu+k 777e0KOqNm3AXdl0Pi6WAWWwy/04wW4yffyZBWrf0DwZ8ZN/EHRwOs7+JEWKhN1Inc3c2EYqcTZ45 d0Rx2ag8JJ4bP05xNfLElYbNaDQxFUK56kEwVJoG3jCkfyzHzSamn/jSuOheox6G2kF1MU1gPmYfg TdA16WBCNJfed+RT3MOfZqijeVpl6yMnygbsPlakwebDiEVRidAqCYb/vB8qqy7w12BtLOriPDeAi S0rGFcGtlMQRDvxU9kgyu12y; Received: from [127.0.0.2] (localhost [127.0.0.1]) by hr2.samba.org with esmtpsa (TLS1.3:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim) id 1lLlrB-0002Al-Kx; Mon, 15 Mar 2021 11:57:57 +0000 From: Stefan Metzmacher To: io-uring@vger.kernel.org Cc: Stefan Metzmacher Subject: [PATCH v2 2/2] io_uring: use typesafe pointers in io_uring_task Date: Mon, 15 Mar 2021 12:56:57 +0100 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Signed-off-by: Stefan Metzmacher --- fs/io_uring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 52b5ed71d770..f048c42d8b8f 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -458,8 +458,8 @@ struct io_uring_task { /* submission side */ struct xarray xa; struct wait_queue_head wait; - void *last; - void *io_wq; + const struct io_ring_ctx *last; + struct io_wq *io_wq; struct percpu_counter inflight; atomic_t in_idle; bool sqpoll; -- 2.25.1