From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: ethernet: mediatek: enhance the locking using the lightweight ones Date: Fri, 12 Aug 2016 20:35:13 -0700 (PDT) Message-ID: <20160812.203513.2152152273401119188.davem@davemloft.net> References: <1470909060-27976-1-git-send-email-sean.wang@mediatek.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, nbd-p3rKhJxN3npAfugRpC6u6w@public.gmane.org, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, keyhaede-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, john-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org To: sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org Return-path: In-Reply-To: <1470909060-27976-1-git-send-email-sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+glpam-linux-mediatek=m.gmane.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: netdev.vger.kernel.org From: Date: Thu, 11 Aug 2016 17:51:00 +0800 > From: Sean Wang > > Since these critical sections protected by page_lock are all entered > from the user context or bottom half context, they can be replaced > with the spin_lock() or spin_lock_bh instead of spin_lock_irqsave(). > > Signed-off-by: Sean Wang Applied to net-next, thanks.