Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp436923ybm; Wed, 22 May 2019 05:55:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOh2JqQB2a2ohd+53w9MoDhUedjM9qth3AC7N6IMUK6QYckubbFc6MCfF5OdxZlh1Zsa8V X-Received: by 2002:a65:64d9:: with SMTP id t25mr89605301pgv.130.1558529730430; Wed, 22 May 2019 05:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558529730; cv=none; d=google.com; s=arc-20160816; b=Hkt5cROvdJDbjlBIkFGeEVfgcmtIQIqDJdkYTaJMm5zwiBaKwwCnOfGRvaoSP5Y2DJ YPqe3RPOTYnQs7wZHdzbpAcNetTQAW6nWCTr4gOccMZLpcDzZBG+sU+7+IMgB1Fnxdxi KHlwcsD9mOhulc78mFPwlkoy2k6R1UUzhuXhQ1RRlQm3GmLNGOCYP1RTTORsVars1bCF +E2jfKbWapvKFz51yl7V/FT0R7aCL6FoQWART7ZdZOT18cqWyvxENJfW54cp1pPMqKZ3 AY0IcS/05eL1VrV3gesx244ZBkVVYKVEDcxNUIb6Y8DgpPrr9K6v3GZnD5VHgX5ml1Vo L2Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=IfoA5XGwziMnCUFKxWidR+kPe823j6CiJEyejp0eISc=; b=HpkYbRgbPTUz2hcIvd8tfifgnjSB1k2vAnj2C7Iww6qcBiKCixovoPkMVkmeXr3bLK zL3fUVTmVias5HqfKZt0DNDMRGkD+t4OjdBLzCc36GQryeEyoVQUYAlwmE4WSdRxr1Bn o5rRnc0+mQVsWNFV0FWFocuN+siX1BUa7kUjlOYt29H345OsAx3dBDsrwhJ+TNxphujb DQda63pxx1UYdm660F1XNAPgPDfUni4QqvOih38w36YlE5lLS/t6Mrrzm/UIcLS+NeH7 +urRCzXcV0c+MIR1mdNjHjdU1wsbQiNjgCI0hywoKlKIaGPtXUXma4aTmLRYYTboN8nr wwJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si25800567ple.418.2019.05.22.05.55.15; Wed, 22 May 2019 05:55:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729298AbfEVMyM (ORCPT + 99 others); Wed, 22 May 2019 08:54:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:56812 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728794AbfEVMyL (ORCPT ); Wed, 22 May 2019 08:54:11 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 5D8F0ACAC; Wed, 22 May 2019 12:54:10 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 22 May 2019 14:54:09 +0200 From: Roman Penyaev To: Eric Wong Cc: Azat Khuzhin , Andrew Morton , Al Viro , Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 05/13] epoll: offload polling to a work in case of epfd polled from userspace In-Reply-To: <20190521075114.if4urjezominbojj@dcvr> References: <20190516085810.31077-1-rpenyaev@suse.de> <20190516085810.31077-6-rpenyaev@suse.de> <20190521075114.if4urjezominbojj@dcvr> Message-ID: <7fced5a4f9468a273b6acb0ca0fdcfb1@suse.de> X-Sender: rpenyaev@suse.de User-Agent: Roundcube Webmail Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-05-21 09:51, Eric Wong wrote: > Roman Penyaev wrote: >> diff --git a/fs/eventpoll.c b/fs/eventpoll.c >> index 81da4571f1e0..9d3905c0afbf 100644 >> --- a/fs/eventpoll.c >> +++ b/fs/eventpoll.c >> @@ -44,6 +44,7 @@ >> #include >> #include >> #include >> +#include >> #include >> >> /* >> @@ -185,6 +186,9 @@ struct epitem { >> >> /* The structure that describe the interested events and the source >> fd */ >> struct epoll_event event; >> + >> + /* Work for offloading event callback */ >> + struct work_struct work; >> }; >> >> /* > > Can we avoid the size regression for existing epoll users? Yeah, ->next, ->rdllink, ->ws are not used for user polling, so can hold work struct and co (or pointer on container which holds work struct, if work struct is huge). -- Roman