Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754720AbbKCCIU (ORCPT ); Mon, 2 Nov 2015 21:08:20 -0500 Received: from mga09.intel.com ([134.134.136.24]:1068 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754700AbbKCCIP (ORCPT ); Mon, 2 Nov 2015 21:08:15 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,236,1444719600"; d="scan'208";a="841131863" Date: Mon, 2 Nov 2015 17:56:56 -0800 From: Yunhong Jiang To: paulmck@linux.vnet.ibm.com Cc: linux-kernel@vger.kernel.org Subject: Can srcu_read_lock() be called from interrupt context? Message-ID: <20151103015656.GA10358@jnakajim-build> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 664 Lines: 16 Hi, Paul I have a question to the srcu_read_lock(). Can it be invoked on interrupt context? According to http://lxr.free-electrons.com/source/kernel/rcu/srcu.c#L292 it can only be called from process context, but according to http://lxr.free-electrons.com/source/include/linux/srcu.h#L213 seems it's ok from irq context only if it matches with the srcu_read_unlock. Can you please give some hints? Thanks --jyh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/