From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-da0-f54.google.com ([209.85.210.54]:61377 "EHLO mail-da0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933890Ab3DJLgD (ORCPT ); Wed, 10 Apr 2013 07:36:03 -0400 Received: by mail-da0-f54.google.com with SMTP id p1so178119dad.13 for ; Wed, 10 Apr 2013 04:36:03 -0700 (PDT) From: "Luis R. Rodriguez" To: johannes@sipsolutions.net Cc: backports@vger.kernel.org, "Luis R. Rodriguez" Subject: [PATCH 06/18] compat: backport ASYNC_DOMAIN_EXCLUSIVE() Date: Wed, 10 Apr 2013 04:35:16 -0700 Message-Id: <1365593728-5720-7-git-send-email-mcgrof@do-not-panic.com> (sfid-20130410_133609_684314_6C8A0CDC) In-Reply-To: <1365593728-5720-1-git-send-email-mcgrof@do-not-panic.com> References: <1365593728-5720-1-git-send-email-mcgrof@do-not-panic.com> Sender: backports-owner@vger.kernel.org List-ID: From: "Luis R. Rodriguez" For older kernels this is simply a matter of using LIST_HEAD. mcgrof@frijol ~/linux-stable (git::master)$ git describe --contains 2955b47d v3.6-rc1~103^2~4 commit 2955b47d2c1983998a8c5915cb96884e67f7cb53 Author: Dan Williams Date: Mon Jul 9 19:33:25 2012 -0700 [SCSI] async: introduce 'async_domain' type This is in preparation for teaching async_synchronize_full() to sync all pending async work, and not just on the async_running domain. This conversion is functionally equivalent, just embedding the existing list in a new async_domain type. The .registered attribute is used in a later patch to distinguish between domains that want to be flushed by async_synchronize_full() versus those that only expect async_synchronize_{full|cookie}_domain to be used for flushing. [jejb: add async.h to scsi_priv.h for struct async_domain] Signed-off-by: Dan Williams Acked-by: Arjan van de Ven Acked-by: Mark Brown Tested-by: Eldad Zack Signed-off-by: James Bottomley Signed-off-by: Luis R. Rodriguez --- backport/include/linux/compat-3.6.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backport/include/linux/compat-3.6.h b/backport/include/linux/compat-3.6.h index 8fddd31..49f4d3b 100644 --- a/backport/include/linux/compat-3.6.h +++ b/backport/include/linux/compat-3.6.h @@ -9,6 +9,9 @@ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)) #include + +#define ASYNC_DOMAIN_EXCLUSIVE(_domain) LIST_HEAD(_domain) + /* Unlocked flavor */ #define __i2c_transfer LINUX_BACKPORT(__i2c_transfer) extern int __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, -- 1.7.10.4