Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp624948pxk; Thu, 3 Sep 2020 08:31:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYBiA3gBsxcZ5B59IVcUA//ukQyNvDnxY99+cI3BS+X97B87iWTKZdKheXCNE33CUYU15v X-Received: by 2002:a17:906:3b4b:: with SMTP id h11mr2662326ejf.381.1599147112326; Thu, 03 Sep 2020 08:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599147112; cv=none; d=google.com; s=arc-20160816; b=cUZFh0Rv7O5qPeHuf7IrJTwnOhN6iHbpXUvAWKZyY4CuLVgXJrr+MtZXsKF6SgPLa8 P6Kl7w21sgL5yxnhNYlxp1J7n2NSZB3CnZBot+QilnWkUD3AtGgrKIuPfsds674lgy/r dd6rgUl8O/tMVs3AKI8PcTMDx/kiQjt48JKHv8PTt77XCKdOIeOdarSve81t3AOiY49b AJS2N2YVnv1PQFGLJSyblItomT708JcSLk2VYa2zyUD45zSZ0f8rPyt8DUbFrIRV+Ng+ Td3sASgUsagu3gstncRSDAsjdqHzgxHctgHlDiVjJRyMb1SjVVKQJlQD1nkRUu5JnAvp D+wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=d2mumm4P1bVr1Bb3gPlVXQGtP2l5t0EgCIHKREur5m8=; b=IJrf1CI9UiUNMrS3yp25ZhrqvqIl6Mg5CDOFXVqMU+UldOgHA8l7cCOimVYUGMgEc6 o9YfDmTRF589yoRjIC/Db0Udxyxgpwm/1HkzRSO2KdCheI5jUT+UZK4pS2aH0Qm/xeRp TPvY85UzNjVT9nBX4w8uXSojgTRvuUZ1y50CbIauVA4C4yHvyNgPAypKgma0ui4IewGE 0EvR3aqkpQLJoiv1LeT1LCXRFHrjR4NnGwfcPrPPmGet4Ki0LjsDq62DIw7X3NXlvvFb tGW9+D+9Cf7wwdHGi7GbuPrd+NrRt4kIHJcoqg/pmBVd//G++Hy18DGB0zvqSUdISbL3 MlnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=R5pM5qaW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si2008483eja.391.2020.09.03.08.31.28; Thu, 03 Sep 2020 08:31:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=R5pM5qaW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728372AbgICP2k (ORCPT + 99 others); Thu, 3 Sep 2020 11:28:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727882AbgICP2j (ORCPT ); Thu, 3 Sep 2020 11:28:39 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE845C061244; Thu, 3 Sep 2020 08:28:38 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id o21so3339142wmc.0; Thu, 03 Sep 2020 08:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=d2mumm4P1bVr1Bb3gPlVXQGtP2l5t0EgCIHKREur5m8=; b=R5pM5qaWNe3soQIqZ+rN7TqeM5o/3xgg5vLLRW9M6/lk1RGvE1FMF0MNRldyB/eW+d 9k187yMwzURiwBoJKRbDMnjCo6vMVtyq503jUc6IjGfIMTPhV7wH8UNfr8IVIJnnLIDm LPXGZCm1ZJok/gsyySyx45jzZ/zt9lUnui2L75teU1SnAL6+WMqrOuIE+s+fiyXEezoB EFkigeb8qpXBjUPoXeMvbOjBGlqxmqjhTrrDUXN/QTjS2/fbC2hVHbX54iP2V70iBPuH GnC2L7NLmZkjHlmQnysSMkmBZIsrcyqwt9h8tSHLyRwqUv2oC74XgO5VJl5vEM59GV/J 4XWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=d2mumm4P1bVr1Bb3gPlVXQGtP2l5t0EgCIHKREur5m8=; b=Obo2NRtHRlQj+xCcDpHC8pyb95+bKUTKXHVySoBq3x1rBERc7Hr67WnD2TbyP71tZc 3Z5pbhdlakOtnuQxKxEL6FcJdaTNJ4Xufxdv4JvrH5xq1Yz21/8ODEBn1NwfX/nVTF80 mybpwS7L4vv4dsvef01QIbVHg8cpPxtir3CmIwUzbfzOBC4N4nmOWd5GE3vKTgLoAaRz 4VF8gBH850SEoQA4QuMObKZMjxTm6OG1BH5is9Xne3IFQBraPVPpiLh3HEv2XgiqJlk1 D3a+PhmGHgdlNcl6hCpUf8ulzotJo0KPfPFY2nA2L+KkWV48ng6CL0SKimOjFIddZIUd 9hDw== X-Gm-Message-State: AOAM533AV5bR2BazLCzBowY1vnDWkvHF2JBh8EhVwOBsmX9kxuxne+MZ HANgmIqqXB3AUfHryy184bU= X-Received: by 2002:a1c:48c2:: with SMTP id v185mr3028633wma.5.1599146917362; Thu, 03 Sep 2020 08:28:37 -0700 (PDT) Received: from localhost.localdomain (cpc83661-brig20-2-0-cust443.3-3.cable.virginm.net. [82.28.105.188]) by smtp.gmail.com with ESMTPSA id 32sm5750210wrh.18.2020.09.03.08.28.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 08:28:36 -0700 (PDT) From: Alex Dewar Cc: Sathya Prakash , Sreekanth Reddy , Suganath Prabu Subramani , MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RFC 0/3] scsi: mpt: Refactor and port to dma_* interface Date: Thu, 3 Sep 2020 16:28:29 +0100 Message-Id: <20200903152832.484908-1-alex.dewar90@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, I started porting over the mpt code from using the old pci_* compat functions to their dma_* counterparts, but realised that there are many functions which have a sleepFlags argument, which is actually almost never actually needed: almost all of the functions are always called with sleepFlag == CAN_SLEEP anyway. The first patch fixes these cases and could be applied by itself as a general tidy-up. The other two patches are functional changes and so I added the RFC tag just to be extra cautious. Both of these patches involve changing some allocations from GFP_ATOMIC to GFP_KERNEL so I wanted to make sure that I wasn't introducing bugs. (Related question: Can you sleep in an ioctl context....?) Any feedback would be greatly appreciated! Best, Alex