Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756039AbdLXL5g (ORCPT ); Sun, 24 Dec 2017 06:57:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:57974 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751076AbdLXL5d (ORCPT ); Sun, 24 Dec 2017 06:57:33 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6DD752188F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=leon@kernel.org Date: Sun, 24 Dec 2017 13:57:30 +0200 From: Leon Romanovsky To: Jia-Ju Bai Cc: faisal.latif@intel.com, shiraz.saleem@intel.com, dledford@redhat.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i40iw: Replace mdelay with msleep in i40iw_wait_pe_ready Message-ID: <20171224115730.GQ2942@mtr-leonro.local> References: <1514111980-30502-1-git-send-email-baijiaju1990@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iamKNtDj9HjMhSdE" Content-Disposition: inline In-Reply-To: <1514111980-30502-1-git-send-email-baijiaju1990@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1482 Lines: 41 --iamKNtDj9HjMhSdE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Dec 24, 2017 at 06:39:40PM +0800, Jia-Ju Bai wrote: > i40iw_wait_pe_ready is not called in an interrupt handler > nor holding a spinlock. > The function mdelay in it can be replaced with msleep, > to reduce busy wait. > > Signed-off-by: Jia-Ju Bai > --- > drivers/infiniband/hw/i40iw/i40iw_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky --iamKNtDj9HjMhSdE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEkhr/r4Op1/04yqaB5GN7iDZyWKcFAlo/likACgkQ5GN7iDZy WKfwww/9GXik8uiZEYKzMmN4NTm8OvEqcRhnqjFqH4IShsuf1HE/J6Z8l6eohd7v /cTAs60APnmLp69+h0A0PMNM3oJoQKF79TZ/KDZ4KGNCf98x1pvEY17MxQyP5pEK u4hD1GvgvZqY09Fq/ViSbHvbCBQQ6BTGHn0pOzbh/BTcddVf+hvSPvA0CL/WMiMT Rjt4mKSoooisG2oGawWCCTQHRdXe5j9ev0lIffDLIy8zWSNJkgjNqUkIHKLmyAyx oUrVBtWnOdkcmi8Lp2/cJpBaZVnH/8iInUm0hX3xHGPHmX7BK0GP6mwu6zs2htGY Ymbng81UaNyiBH+h1hmkHiBF5zCERXx7LmquXdoas8EUUr6Yd3fcOXT7PQ0UPVGe iz8GM8hI8O2q0vscAJzT5cAYbfvur/KHXGj/KF6vW2PK1EKkMqJH7ZArlsDrswF9 YAcL3GXzaei0p9WSPoC8vSL2jRZHzg9uCVXlNYcYOE+EfvWxev/nKpJ6uvXxzxSf F7jyYreHFT+6+AKungSCT2JIWYlwYwV+8LMFJAZgd25VoMUooPgzF19hXnsp7mrW a2E2hZKeXyVmjjTqi4abbYHUwjKyH3VEa6dH28JSSkn4exY74J89h4wwbvA+xaNT 4UEqzDi6PjQ3vPySQzx22icwPBwI/8aaQ7ehF41sIbYML4vuqOc= =s+RX -----END PGP SIGNATURE----- --iamKNtDj9HjMhSdE--