Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp147485ybz; Thu, 23 Apr 2020 20:33:55 -0700 (PDT) X-Google-Smtp-Source: APiQypJdADBnsVrvz+EJc7fsZeSPMKAS3AJ6LuAB/dDdyBMiWS9vUVy/03T06xwcC/VlVoeLzoAV X-Received: by 2002:a17:906:28d7:: with SMTP id p23mr5165216ejd.305.1587699235660; Thu, 23 Apr 2020 20:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587699235; cv=none; d=google.com; s=arc-20160816; b=XWEEr1uszQcxEK6csTbvUtMMQQGfrP5L3xjurpn7yeTwvgHmFK4Rm6wuLGz3lq7UO5 Tnbum3zPGGSLbMrdKHnF1bEA2okZnSLpyYnPiru8DiQ1hHDcjlHVIDC/tvJ3Q2eLh42w uvnFBa7lRNKJfiiredpEywjT0SLGq4+TJhYBqjF2fBX8bPX4taR8J06n2pXnql716j6w AOHNSDlYqpYvWhKgzN5ZFWAGAl1qKlIhH7OantQI7QqoVR1piSJtPEY55380sKfWQSLV PiG/w1FbkO0TmdVc/SzTp5meDwpnT4Sjp8wA6USNVRf9j+VGYHf2uDeJdbtwKIww0nLw mADA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=XKG+nqWXWBPRtHq8aMsFPWGWC5qg6fnZC0KpTyXRMAI=; b=jiL3EBqmG+6+EenAjIolJapd4u0K1F/wt09c5WSwi63WYZLfXEais3rJfLJN0Es040 PJm2neGb9kYYbZd6R7B+h8oda1FrcH9yaluMRF+ZZXRgvxzIlitZdFOvWwABRxXAIHlq /EyEsFNhdB1+TMUjYEt9sgMBHIF09YLOArTEV7fETmsRnI+GwqnkU6oRiJGcghNo2VyH dbrvxlgi24nUOk8Km/S2btIWdejZGUpq2e6s+crn+p53z0BrJ6YIWzjFEBkbswhQa8LC G6CaIW+yk67NrfX1bFsRvAlp6jRJElHkXgwmTb7ERPF9hr/rMUwMF9pDWInNaaIn+o5X QLjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XSnyfLHv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k5si2238727edr.491.2020.04.23.20.33.31; Thu, 23 Apr 2020 20:33:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XSnyfLHv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726152AbgDXDcB (ORCPT + 99 others); Thu, 23 Apr 2020 23:32:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:41670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbgDXDcA (ORCPT ); Thu, 23 Apr 2020 23:32:00 -0400 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F400020715; Fri, 24 Apr 2020 03:31:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587699120; bh=I1OlM/2njVJD71o/KXJZlf3QxL9rXUikbasofOdfxns=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XSnyfLHvDk/uvkzKgUL1mO83yO7io8HhDylhJG07G2Zc42huWNJb4hBUHXhCNsgPe T+0Nuj6seqgc4KBmaCI7A50LRbLpQfjg9xiL9q4GNENySn+tPxP8lNo+H3a1Ea3Ko7 sYKsE1vkJHmGNY0SfDDOs3oiZx2xF2/vWwGOWOj4= Date: Thu, 23 Apr 2020 20:31:59 -0700 From: Andrew Morton To: Khazhismel Kumykov Cc: viro@zeniv.linux.org.uk, rpenyaev@suse.de, r@hev.cc, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Baron Subject: Re: [PATCH] eventpoll: fix missing wakeup for ovflist in ep_poll_callback Message-Id: <20200423203159.c9fc9988649e08d59e13e64d@linux-foundation.org> In-Reply-To: <20200424025057.118641-1-khazhy@google.com> References: <20200424025057.118641-1-khazhy@google.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Apr 2020 19:50:57 -0700 Khazhismel Kumykov wrote: > In the event that we add to ovflist, before 339ddb53d373 we would be > woken up by ep_scan_ready_list, and did no wakeup in ep_poll_callback. > With that wakeup removed, if we add to ovflist here, we may never wake > up. Rather than adding back the ep_scan_ready_list wakeup - which was > resulting un uncessary wakeups, trigger a wake-up in ep_poll_callback. > > We noticed that one of our workloads was missing wakeups starting with > 339ddb53d373 and upon manual inspection, this wakeup seemed missing to > me. With this patch added, we no longer see missing wakeups. I haven't > yet tried to make a small reproducer, but the existing kselftests in > filesystem/epoll passed for me with this patch. I'm no longer familiar with this code, so I'll await input from others. > Fixes: 339ddb53d373 ("fs/epoll: remove unnecessary wakeups of nested epoll") > Signed-off-by: Khazhismel Kumykov However it sounds like a cc:stable would be warranted here, so that earlier affected kernels get the fix?