Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3556614pxf; Mon, 29 Mar 2021 05:39:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHF9lE03BSmnUgQ9apBmLdLNlDATxK2OhODbr/Mir+h9DwopJpv7bZ5eZLyrfpImq0fKQb X-Received: by 2002:a50:8524:: with SMTP id 33mr28586842edr.110.1617021545004; Mon, 29 Mar 2021 05:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617021544; cv=none; d=google.com; s=arc-20160816; b=okvkdcF/gUwznVY3ihrYEsI42GamJMsG2y0xEZjSNS/dzxpYCwihjLps9zRrVPmFfw F+LVWg9A/CiN+eRfroShRLL8pmDfMr1vv18p4kiSQDHz/rSf5usBRzwBUzG7rcilQTQ8 hE/23aulY8NfuWoqepJE1NrruMyD+CDXP9olztnuB00PgYGPBOwkaBmVw7rQblnCxCwX xZo1FDCqa+ubH4+zFCndNrobzNU3i2Dze2r9LaesReupEBWi82yHVSKenenoEXbX2WzX ATLA7J2luoiETWxWdXJlGJycr+9xHzRvhftd9uGr5GGUBrcNcA9jUeDw+z/+5a/cajVU i+Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=f0wLENhgCKs5NZ8Pb14N12AT2LvU2p9rw10BggHXs3U=; b=ErTAnJgF7bfi8aH777k5DIH/BKk0Qfg8XSTm4rM87SSXyHTTZMPWXGUaoScXzpMIdd wUqcWdtiP2RC7A48ztdnjTpU9MCzKs4i5XpAPG9qnloGDcvsqDc3HRnj1uxmsof3fccK Hdb0roM3RyJ1i31sl5EMZKdmLx9vPOvIep20oQIjDVp3NH84LGfGbPVqFPAoGerf+XAX 4kZ1q0TdIQNa7yseXATmKIQijbQrcucQTQxQlkdBWozXpgtMXR9M9KY41HDLYCXrNgBt S4pYYAWAWQztM19LwMRsj4keuIZfhhDT873q1HPEL+E5CapavYJ1r2GlSEaF4otvzrTW dZmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=SYyKhEUv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j12si6616919edn.294.2021.03.29.05.38.42; Mon, 29 Mar 2021 05:39:04 -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=pass header.i=@ibm.com header.s=pp1 header.b=SYyKhEUv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231267AbhC2Mfa (ORCPT + 99 others); Mon, 29 Mar 2021 08:35:30 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:36012 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231260AbhC2MfB (ORCPT ); Mon, 29 Mar 2021 08:35:01 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 12TCYlIo076619; Mon, 29 Mar 2021 08:34:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=f0wLENhgCKs5NZ8Pb14N12AT2LvU2p9rw10BggHXs3U=; b=SYyKhEUvuaHdbL2L7l16h7G2o39Y7g19tABnnHcis48hiQXaPJ8UC5Nmr4jQbw3x5s7X 6Iq/xHUl1nL1h1ETFv9nGWJvu7jAv3XQy/60LWm3oi30E0FG4isXa+X4+93teJR098M+ S9hN88VQMyGZMmTEG5KuhWpXShZPGyvGlL5IDlkQIsipr1J0cdVWnapCgxWQA+dVRXyW cauXwU/N+vP8XC+Uk8xe6p4nb//rgLmABN13XiKDKhVV2WitoKCFbIaSXf+eTkbyeJiE wH83CpIr7Q7yuhxQbuRpe4lQCrgu8OmoEgtxc8lSoQJpyzctOPwtjNUa3s6o5MCIs+FP Kw== Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 37jhm4p693-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Mar 2021 08:34:56 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 12TCNFe3012222; Mon, 29 Mar 2021 12:34:54 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma03ams.nl.ibm.com with ESMTP id 37hvb89sus-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Mar 2021 12:34:53 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 12TCYpIS41287960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Mar 2021 12:34:51 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 16DF511C04A; Mon, 29 Mar 2021 12:34:51 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D3CB611C050; Mon, 29 Mar 2021 12:34:50 +0000 (GMT) Received: from oc6887364776.ibm.com (unknown [9.152.212.155]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 29 Mar 2021 12:34:50 +0000 (GMT) Subject: Re: [PATCH -next 1/2] s390/cio: use DEFINE_SPINLOCK() for spinlock To: Shixin Liu , Peter Oberparleiter , Heiko Carstens , Vasily Gorbik , Christian Borntraeger Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210329094019.67044-1-liushixin2@huawei.com> From: Vineeth Vijayan Message-ID: <6f2f4aa6-de5a-118e-7380-3672129ee3e9@linux.ibm.com> Date: Mon, 29 Mar 2021 14:34:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210329094019.67044-1-liushixin2@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-GUID: gnkZjr6gY5aw3ajwjyHRxzheqhTprqGK X-Proofpoint-ORIG-GUID: gnkZjr6gY5aw3ajwjyHRxzheqhTprqGK X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-29_08:2021-03-26,2021-03-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 clxscore=1015 spamscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 mlxlogscore=999 malwarescore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2103250000 definitions=main-2103290097 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you. Acked-by: Vineeth Vijayan On 3/29/21 11:40 AM, Shixin Liu wrote: > spinlock can be initialized automatically with DEFINE_SPINLOCK() > rather than explicitly calling spin_lock_init(). static spinlock > > Signed-off-by: Shixin Liu > --- > drivers/s390/cio/css.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c > index 253ab4e7a415..f01ef6325039 100644 > --- a/drivers/s390/cio/css.c > +++ b/drivers/s390/cio/css.c > @@ -651,13 +651,12 @@ static void css_sch_todo(struct work_struct *work) > } > > static struct idset *slow_subchannel_set; > -static spinlock_t slow_subchannel_lock; > +static DEFINE_SPINLOCK(slow_subchannel_lock); > static wait_queue_head_t css_eval_wq; > static atomic_t css_eval_scheduled; > > static int __init slow_subchannel_init(void) > { > - spin_lock_init(&slow_subchannel_lock); > atomic_set(&css_eval_scheduled, 0); > init_waitqueue_head(&css_eval_wq); > slow_subchannel_set = idset_sch_new();