From patchwork Fri Sep 5 06:37:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Luis R. Rodriguez" X-Patchwork-Id: 386119 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3838F1400B7 for ; Fri, 5 Sep 2014 16:39:18 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756050AbaIEGi4 (ORCPT ); Fri, 5 Sep 2014 02:38:56 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:61552 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750781AbaIEGiB (ORCPT ); Fri, 5 Sep 2014 02:38:01 -0400 Received: by mail-pd0-f170.google.com with SMTP id r10so15332361pdi.1 for ; Thu, 04 Sep 2014 23:38:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=htme54ENsAFMjOHObc1UrcnlSP6lfXK8o4pX9D9XbBE=; b=MMsrqoKvBsd7rCp1OKBBzUvUtUCU+UGPpFeh8L1YC6Ppyo5EZuKALefmYzzoy59JVQ VTzTbSpVkhjJbuMFjxH8nqEY3juWMSGKxhVFP+XLlFnWE9VMS6cf+BLCgdttW/rL6cn7 qO2LGixSsyCkgpTSlgk3vKQc87S3EEfclj+C7un6RMYpioG+oWZCHw+EBvsb12mULUMU ZNWgRbTkg9jODlgnhffasTrXoZ6Rac0RHY3V46SMUNnM6AoESn1QmSdpCi5o9lGPugvX di8EV+IlmgagKaAC7svkO+X3unjehgqspoCI7qVI69kSSLGqrya0ldgAYVQE1awZh3Zl l5gA== X-Received: by 10.70.60.169 with SMTP id i9mr17864887pdr.166.1409899080617; Thu, 04 Sep 2014 23:38:00 -0700 (PDT) Received: from mcgrof@gmail.com (c-98-234-145-61.hsd1.ca.comcast.net. [98.234.145.61]) by mx.google.com with ESMTPSA id ve13sm981987pac.6.2014.09.04.23.37.56 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 04 Sep 2014 23:37:59 -0700 (PDT) Received: by mcgrof@gmail.com (sSMTP sendmail emulation); Thu, 04 Sep 2014 23:37:55 -0700 From: "Luis R. Rodriguez" To: gregkh@linuxfoundation.org, dmitry.torokhov@gmail.com, falcon@meizu.com, tiwai@suse.de, tj@kernel.org, arjan@linux.intel.com Cc: linux-kernel@vger.kernel.org, oleg@redhat.com, hare@suse.com, akpm@linux-foundation.org, penguin-kernel@i-love.sakura.ne.jp, joseph.salisbury@canonical.com, bpoirier@suse.de, santosh@chelsio.com, "Luis R. Rodriguez" , Tetsuo Handa , One Thousand Gnomes , Tim Gardner , Pierre Fersing , Nagalakshmi Nandigama , Praveen Krishnamoorthy , Sreekanth Reddy , Abhijit Mahajan , Hariprasad S , Casey Leedom , MPT-FusionLinux.pdl@avagotech.com, linux-scsi@vger.kernel.org, netdev@vger.kernel.org Subject: [RFC v2 5/6] mptsas: use async probe Date: Thu, 4 Sep 2014 23:37:26 -0700 Message-Id: <1409899047-13045-6-git-send-email-mcgrof@do-not-panic.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409899047-13045-1-git-send-email-mcgrof@do-not-panic.com> References: <1409899047-13045-1-git-send-email-mcgrof@do-not-panic.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: "Luis R. Rodriguez" Its reported that mptsas can at times take over 30 seconds to recognize SCSI storage devices [0], this is done on the driver's probe path. Use the the new asynch probe to circumvent systemd from killing this driver. [0] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1276705 Cc: Tetsuo Handa Cc: Joseph Salisbury Cc: One Thousand Gnomes Cc: Tim Gardner Cc: Pierre Fersing Cc: Andrew Morton Cc: Oleg Nesterov Cc: Benjamin Poirier Cc: Greg Kroah-Hartman Cc: Nagalakshmi Nandigama Cc: Praveen Krishnamoorthy Cc: Sreekanth Reddy Cc: Abhijit Mahajan Cc: Hariprasad S Cc: Santosh Rastapur Cc: Casey Leedom Cc: MPT-FusionLinux.pdl@avagotech.com Cc: linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Luis R. Rodriguez --- drivers/message/fusion/mptsas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 0707fa2..6dfee95 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -5385,6 +5385,7 @@ static struct pci_driver mptsas_driver = { .suspend = mptscsih_suspend, .resume = mptscsih_resume, #endif + .driver.async_probe = true, }; static int __init