From patchwork Fri Oct 21 18:42:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9389879 X-Patchwork-Delegate: snitzer@redhat.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7E2BA60780 for ; Fri, 21 Oct 2016 18:45:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 736F12A1F0 for ; Fri, 21 Oct 2016 18:45:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 67DA92A278; Fri, 21 Oct 2016 18:45:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx5-phx2.redhat.com (mx5-phx2.redhat.com [209.132.183.37]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B581C2A1F0 for ; Fri, 21 Oct 2016 18:45:16 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx5-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9LIgn8I032202; Fri, 21 Oct 2016 14:42:49 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u9LIgm5E025247 for ; Fri, 21 Oct 2016 14:42:48 -0400 Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9LIglnn026259 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 21 Oct 2016 14:42:48 -0400 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0085.outbound.protection.outlook.com [104.47.40.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 87E91C057FA5 for ; Fri, 21 Oct 2016 18:42:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=UcSGUPtHO+AqKuyHlMTd9LkVIJx2OWgXSrMHv9S0Ss0=; b=Sqm33tPQljkZ0qh0QQIZc0de8Ni8a9ie+HBjDl2s7ko6v9PO/hspqYjEsobnvxj+a/vlNezXNcoQpxtQU2eepnyRATPlyldZXvT90gc/3IAHGkNE2qVcmcSg62a7nQWXa/OB/iAkrgl0mA6JK9TsMJRpenKTGBQ9jXAKg2WuSeA= Received: from BY2PR02CA0097.namprd02.prod.outlook.com (10.163.44.151) by CY1PR02MB2154.namprd02.prod.outlook.com (10.166.190.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.659.11; Fri, 21 Oct 2016 18:42:45 +0000 Received: from BN1AFFO11FD045.protection.gbl (2a01:111:f400:7c10::150) by BY2PR02CA0097.outlook.office365.com (2a01:111:e400:5261::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16 via Frontend Transport; Fri, 21 Oct 2016 18:42:44 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; opensvc.com; dkim=none (message not signed) header.d=none;opensvc.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by BN1AFFO11FD045.mail.protection.outlook.com (10.58.53.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.7 via Frontend Transport; Fri, 21 Oct 2016 18:42:43 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 01.03.61581.06F5A085; Fri, 21 Oct 2016 11:33:04 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Fri, 21 Oct 2016 11:42:42 -0700 X-AuditID: 0ac94371-5f3ff7000000f08d-e9-580a5f600d66 Received: from exp-402881.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 34.79.03615.2A16A085; Fri, 21 Oct 2016 11:42:42 -0700 (PDT) To: Christophe Varoqui References: <72bd7a6a-7fb9-5a2c-b22d-031d8feb01b0@sandisk.com> From: Bart Van Assche Message-ID: Date: Fri, 21 Oct 2016 11:42:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <72bd7a6a-7fb9-5a2c-b22d-031d8feb01b0@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFLMWRmVeSWpSXmKPExsXCddJ5kW5CPFeEwbJP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Ls/WS83M3MUICLWoH4/WJ5ocYmTg4pRoYHf98v95+MO6PtHONRu+Wrpg86UtlTGa/G4/d zM0OXG98MDFiauL/NfvfLDPcf1nNXlk47GVO2+fJRTWfFVs/rNa51c36pK1Ib53fjhXH1yjf jO8x/7Rs6mamb7NYuyVC2U7zcXOw7mOd1BlSydG+lMNEyIrJUnHHpBzOqM0X/Dfr1lxp4khX YinOSDTUYi4qTgQAaslCH+QBAAA= X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(199003)(189002)(36756003)(2270400002)(65826007)(110136003)(31686004)(53416004)(4326007)(106466001)(5660300001)(189998001)(626004)(7846002)(2906002)(356003)(305945005)(11100500001)(19580395003)(50986999)(76176999)(54356999)(19580405001)(6916009)(2950100002)(4001350100001)(81166006)(8676002)(81156014)(230700001)(8936002)(87936001)(69596002)(64126003)(33646002)(586003)(77096005)(65956001)(65806001)(97736004)(47776003)(23676002)(83506001)(229853001)(92566002)(68736007)(50466002)(575784001)(31696002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR02MB2154; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD045; 1:MusvRfw3/A/71APQ5zsYDQacJkJN0+oi/KR2iJ5BNESOKatZkh0x2GbRhTZAXmfK9ZZH6rFbj4D3Z6yo0FUBjv0sb1zCrjMt4T1ul9oSt+Co8OAmniPUkp7GPRYEF0r1xGh2kpM6Szv+AUzgIj0IY07hsiEVuamsCe7KhVNCIAU0/4DmqN9yJdSopuhrXMsi0UylzdP/tQbg1UHNtr3PsofiVTnFxunBTR5WDTyapSdc926r1b10/abEyeqeH+EKtTrlaZihWuIMfTPtH4dZo4zI1XxUkvTej61FhauM//NaU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UTwI/vJRNldqASqTdkEkepLgcUuXOARSio6eHFBp3IXQ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:CY1PR02MB2154; BCL:0; PCL:0; RULEID:; SRVR:CY1PR02MB2154; X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB2154; 4:IK9d1A8hSfhXa90Ak1b3VqgvM2Z/+q6Wm8Wny+D30UEkYZ7lUDPLgcU8g97HQETPDcdutPNPMoYnTrzN0JiM3zCJ9wHLGc0rzkq86hnSOdtzbY9ovn4N0MLQHDymBMjelB0GchsAx3pUP04JS+nJDZJSfwWp0njCu/c7vYNwGhAoF1dJFf+9lks6Q52D1SlEDZv+aUYvow80DlWc89y/GvSSbMXSNKrJTcNn5hx7t16hKG9vbU/raGcSDxDn6oQt4HyQu4x57GlpmAkiWAqFgfeUATZr6MPdPPyb5SJBdPkoQqxGEJyUTvKeAUaDCQopuDHs8owricx/nlYeZZEr5oQliiMi1ZA6542Or80ZTg0BW63ZIz3C86bhCt7pKDseBHuW5vsv+DLd5enCa7Jl7/a833ugwJK24mE8KfWA9Y129sjx1o47mGJtZnKc1lhzPYFBI8s27e6oGgXpDXfATrw5gW2ZvAeUnZP2nRaOu9OgTtElzwCzn+mUeIB23g5V X-Forefront-PRVS: 01026E1310 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjAyTUIyMTU0OzIzOnJTRHlkSkhZblpqcFkvTndDZG5VeFNWQ1A1?= =?utf-8?B?SVhLVFJxandGWjVLT09lVmFOWXluNEtvTnlkaTIzV1ViSjhrME9WTmJBeHQ0?= =?utf-8?B?THVtS0V4dUJ3SDI5VTI5N001TWwvajRpUmIvS1RDSjVGVXRhWGluVjRPLzFV?= =?utf-8?B?TExIU3pnSmNWU2lUZy9qZ09SUF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RHgMoyX78hxDmQA/kFc1R9TMrskmkGnldhPB1NhMyYbk+oO0NNx51TriRoN6HbnuCva+I9QAYvhEE1nFLiuocenseW2VZb8yc91jSDKqesfA==; 5:DsB2C3E3ju0STe7AEaWl9gJ+AAWLRp9zlQIObK+NAqbrK5JyvWA5Ea3zWP78hH137ncGCZ8VFH58W3HveGrMTPGb37vqNvKUOBMQDrf4fEfhGLFsuta+ZtXptFz+Ny4+HniTgy5WjWyt+qxtTqF3nA==; 24:nxuOZQgL5R5yikmfuT0i2TUrO8Lth0ht4P1ySknZn5z9m/kadMuk8JuHMdPO4euCOcqEKGz+n6uo9sBjS+LE7krMnWetOPsFjPTUFun5xhI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB2154; 7:qoQzN5zIgPoWC+c1g55wnhjJ1484S5Vc1cNnebJ1N3nT5kcQmgJe0IQuCYK2+CH8E80k031TtH8Ja8rnWd0WGmj0mJ2hxEnelSz1gDIHuYbR+GOdyfLw8nE0rTjidtF7PAZzxCk7koKADTv3AttIGf7voJpcUeAHD1EOHoDN9ypxJdJMYhH9Az/c7J0JtWXxtD9D8pAmt5nc2hSuo6Y8p3svUYMVeUkPKqx7XaREWzXy3KHfkOSJ2cv6YJX2oeYPJS+p0srduNn0kVQ1UcjePtnG12jDjOEhGbSYOEy2kat2auI/zuNm5LTq2PupUXtOzHYcoYC4ruZm45w2R9or3y9hO7+YoleBd4QwUGIqukA=; 20:3EFoTba2FbOTCS8N7mDShR4TV5CuCWovWY/aflMnPtm9KezfzsLQvhTqRJWhBxtBPYdqnU1SSBCGTopLbGgCKt02b/4wv0X68vST2h+ZglyqWngqYqqdDMvxb4jDnim4SusHO5lUPZTarpiQ27UpwE/hmUaN3k86m7t810ZoWpHhH6mX8OnMcBX8+RnPN34kKoJLFpEjA0PL+lyj068tUcARLpuFxRxnGiQJBimIq3KcyDeM7smndnxOjq35PIGq X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2016 18:42:43.7998 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR02MB2154 X-Greylist: Sender IP whitelisted by DNSRBL, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 21 Oct 2016 18:42:46 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 21 Oct 2016 18:42:46 +0000 (UTC) for IP:'104.47.40.85' DOMAIN:'mail-co1nam03on0085.outbound.protection.outlook.com' HELO:'NAM03-CO1-obe.outbound.protection.outlook.com' FROM:'Bart.VanAssche@sandisk.com' RCPT:'' X-RedHat-Spam-Score: 0.368 (BAYES_50, DCC_REPUT_00_12, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS) 104.47.40.85 mail-co1nam03on0085.outbound.protection.outlook.com 104.47.40.85 mail-co1nam03on0085.outbound.protection.outlook.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-loop: dm-devel@redhat.com Cc: device-mapper development Subject: [dm-devel] [PATCH 04/15] libmultipath: Move setup_thread_attr() from uevent.c into util.c X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP The setup_thread_attr() is not called by any code in source file uevent.c. Hence move that function to source file util.c. Signed-off-by: Bart Van Assche --- libmultipath/checkers/rbd.c | 2 +- libmultipath/checkers/tur.c | 2 +- libmultipath/uevent.c | 25 ------------------------- libmultipath/uevent.h | 1 - libmultipath/util.c | 25 +++++++++++++++++++++++-- libmultipath/util.h | 1 + 6 files changed, 26 insertions(+), 30 deletions(-) diff --git a/libmultipath/checkers/rbd.c b/libmultipath/checkers/rbd.c index c920cbb..f60914e 100644 --- a/libmultipath/checkers/rbd.c +++ b/libmultipath/checkers/rbd.c @@ -26,7 +26,7 @@ #include "checkers.h" #include "../libmultipath/debug.h" -#include "../libmultipath/uevent.h" +#include "../libmultipath/util.h" #include "../libmultipath/time-util.h" struct rbd_checker_context; diff --git a/libmultipath/checkers/tur.c b/libmultipath/checkers/tur.c index 81206e4..92200aa 100644 --- a/libmultipath/checkers/tur.c +++ b/libmultipath/checkers/tur.c @@ -19,7 +19,7 @@ #include "../libmultipath/debug.h" #include "../libmultipath/sg_include.h" -#include "../libmultipath/uevent.h" +#include "../libmultipath/util.h" #include "../libmultipath/time-util.h" #include "../libmultipath/util.h" diff --git a/libmultipath/uevent.c b/libmultipath/uevent.c index f844294..7bc5837 100644 --- a/libmultipath/uevent.c +++ b/libmultipath/uevent.c @@ -37,7 +37,6 @@ #include #include #include -#include #include #include #include @@ -81,30 +80,6 @@ struct uevent * alloc_uevent (void) } void -setup_thread_attr(pthread_attr_t *attr, size_t stacksize, int detached) -{ - if (pthread_attr_init(attr)) { - fprintf(stderr, "can't initialize thread attr: %s\n", - strerror(errno)); - exit(1); - } - if (stacksize < PTHREAD_STACK_MIN) - stacksize = PTHREAD_STACK_MIN; - - if (pthread_attr_setstacksize(attr, stacksize)) { - fprintf(stderr, "can't set thread stack size to %lu: %s\n", - (unsigned long)stacksize, strerror(errno)); - exit(1); - } - if (detached && pthread_attr_setdetachstate(attr, - PTHREAD_CREATE_DETACHED)) { - fprintf(stderr, "can't set thread to detached: %s\n", - strerror(errno)); - exit(1); - } -} - -void service_uevq(struct list_head *tmpq) { struct uevent *uev, *tmp; diff --git a/libmultipath/uevent.h b/libmultipath/uevent.h index e5fdfcc..9d22dcd 100644 --- a/libmultipath/uevent.h +++ b/libmultipath/uevent.h @@ -27,7 +27,6 @@ struct uevent { }; int is_uevent_busy(void); -void setup_thread_attr(pthread_attr_t *attr, size_t stacksize, int detached); int uevent_listen(struct udev *udev); int uevent_dispatch(int (*store_uev)(struct uevent *, void * trigger_data), diff --git a/libmultipath/util.c b/libmultipath/util.c index ac0d1b2..0a136b4 100644 --- a/libmultipath/util.c +++ b/libmultipath/util.c @@ -1,7 +1,10 @@ -#include +#include #include -#include +#include +#include +#include #include +#include #include #include "debug.h" @@ -258,3 +261,21 @@ dev_t parse_devt(const char *dev_t) return makedev(maj, min); } + +void +setup_thread_attr(pthread_attr_t *attr, size_t stacksize, int detached) +{ + int ret; + + ret = pthread_attr_init(attr); + assert(ret == 0); + if (stacksize < PTHREAD_STACK_MIN) + stacksize = PTHREAD_STACK_MIN; + ret = pthread_attr_setstacksize(attr, stacksize); + assert(ret == 0); + if (detached) { + ret = pthread_attr_setdetachstate(attr, + PTHREAD_CREATE_DETACHED); + assert(ret == 0); + } +} diff --git a/libmultipath/util.h b/libmultipath/util.h index 8861085..f3b37ee 100644 --- a/libmultipath/util.h +++ b/libmultipath/util.h @@ -12,6 +12,7 @@ size_t strlcat(char *dst, const char *src, size_t size); int devt2devname (char *, int, char *); dev_t parse_devt(const char *dev_t); char *convert_dev(char *dev, int is_path_device); +void setup_thread_attr(pthread_attr_t *attr, size_t stacksize, int detached); #define safe_sprintf(var, format, args...) \ snprintf(var, sizeof(var), format, ##args) >= sizeof(var)