From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,NO_DNS_FOR_FROM, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from [192.168.88.254] (unknown [180.254.122.8]) by gnuweeb.org (Postfix) with ESMTPSA id 3F3C17FD62; Sun, 19 Jun 2022 11:16:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1655637421; bh=RWCaYv4p6CIMRUgFbFEO1RIMLP367OP4YZ8QuMK/6BM=; h=Date:To:Cc:References:From:Subject:In-Reply-To:From; b=e6YvCCLrjX+NVWWBKMUnzlSOAMWx3+SxLzytKQ2RQJLYw19nOoOG5WLfDDxS3btQN vZUmSFqun/c0ro3d9NCclWhg2FOybMpgBa4sQqghloUFW5S8zzjcbKsrztFnA2+QvQ QE1y0VvDLGUFMpei5VaCc++Aql8lLf8B+W/nur3DQFyaa7fSvCDrc83fRcppiz/5bD 1WMKWaQ14z20YFNR55fsMg5VFTYE3KejhCWsGiZyhfk77iiA6yMCSpQWTPLOcgoj70 BzUusk8w3XYHy7WaftrsAOiwuRwckD1+xlZYGsCXEXsmd4TpkdOnygDabnkYxHBq/c lOR3l8OKhPhfQ== Message-ID: <786492be-f732-59d0-ccef-e7be6a101002@gnuweeb.org> Date: Sun, 19 Jun 2022 18:16:55 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Content-Language: en-US To: Jens Axboe Cc: Pavel Begunkov , Carter Li , io-uring Mailing List References: <20220619020715.1327556-1-axboe@kernel.dk> <20220619020715.1327556-4-axboe@kernel.dk> From: Ammar Faizi Subject: Re: [PATCH 3/3] io_uring: add sync cancelation API through io_uring_register() In-Reply-To: <20220619020715.1327556-4-axboe@kernel.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: Hi Jens, On 6/19/22 9:07 AM, Jens Axboe wrote: > + cd.seq = atomic_inc_return(&ctx->cancel_seq), Not sure if it's intentional, but the comma after atomic_inc return() looks unique. While that's valid syntax, I think you want to use a semicolon to end it consistently. > + > + prepare_to_wait(&ctx->cq_wait, &wait, TASK_INTERRUPTIBLE); > + > + ret = __io_sync_cancel(current->io_uring, &cd, sc.fd); -- Ammar Faizi