From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755501AbdLVDMg (ORCPT ); Thu, 21 Dec 2017 22:12:36 -0500 Received: from mx2.suse.de ([195.135.220.15]:42013 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752766AbdLVDMf (ORCPT ); Thu, 21 Dec 2017 22:12:35 -0500 From: NeilBrown To: Peter Zijlstra , Ingo Molnar Date: Fri, 22 Dec 2017 14:11:03 +1100 Subject: [PATCH 0/2] Add new wait_event macros to support lustre Cc: linux-kernel@vger.kernel.org, lustre Message-ID: <151391203805.23157.8332034037737592042.stgit@noble> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Lustre has its own l_wait_event() macro to support waiting. Some uses can be converted to current wait_event macros, but others cannot. Particularly it needs to be able to wait in TASK_IDLE state, and needs exclusive waiters to be placed at the head of the queue. These two patches add required functionalty to wait.h so that lustre can be fully moved away from l_wait_event() Thanks, NeilBrown --- NeilBrown (2): sched/wait: add wait_event_idle() functions. sched/wait: add wait_event_idle_exclusive_lifo() include/linux/wait.h | 170 +++++++++++++++++++++++++++++++++++++++++++++++++- kernel/sched/wait.c | 3 + 2 files changed, 167 insertions(+), 6 deletions(-) -- Signature