From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751284AbeAYPaW (ORCPT ); Thu, 25 Jan 2018 10:30:22 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:42488 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750769AbeAYPaU (ORCPT ); Thu, 25 Jan 2018 10:30:20 -0500 X-Google-Smtp-Source: AH8x227/0mLPNPdSZMhdy3R22CTQo8LHOwqgfA+ZU1yLanJtddxNlBxBraZN9+MX4Y37GDxoe5i2mg== Date: Thu, 25 Jan 2018 07:30:00 -0800 From: Tejun Heo To: Jia-Ju Bai Cc: mlord@pobox.com, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ata: sata_mv: Replace mdelay with usleep_range in mv_reset_channel Message-ID: <20180125153000.GD17457@devbig577.frc2.facebook.com> References: <1516876013-12653-1-git-send-email-baijiaju1990@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1516876013-12653-1-git-send-email-baijiaju1990@gmail.com> 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 On Thu, Jan 25, 2018 at 06:26:52PM +0800, Jia-Ju Bai wrote: > After checking all possible call chains to mv_reset_channel here, > my tool finds that mv_reset_channel is never called in atomic context, > namely never in an interrupt handler or holding a spinlock. > Thus mdelay can be replaced with usleep_range to avoid busy wait. > > This is found by a static analysis tool named DCNS written by myself. > > Signed-off-by: Jia-Ju Bai Applied to libata/for-4.16. Thanks. -- tejun