Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3492934ybt; Tue, 23 Jun 2020 03:47:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwurmdaPCVfkBpncgEc0QSxvpdozVKSAhlmCJ/MrrVwxNqdOT1J6e4/SW1dPedGLLpCNi3B X-Received: by 2002:a50:88e1:: with SMTP id d88mr21359439edd.74.1592909223470; Tue, 23 Jun 2020 03:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592909223; cv=none; d=google.com; s=arc-20160816; b=WOvNQln7znFs9ranEfT7mX/1EkEsiJPxtOsSkgy9aO6qYbrmyPfwnd3sdJkHBWYErs EJaY3y6QLpOEd4SKQ7z2jO2MPm71N19UTGjVbthL5+NEC85BeQ+JYpzzptjaie+xMwc+ O6K0HVkKIPSIAHoZn9wHeLOhxrZWFEHf9erEaQ/5XRzOdq208cToNL/ECXUxYvyj4dVm wNp93Xh4FCdoDmuJ67KeRpHHnIu/oAtWtkG4hVqELfmSOKrboB1xiS7I0mbJ9Fjw1TAn 3MNjKpxYZc5zlukRdIKLN1zx6L6YVKzAOfSS5i1oKHyRoI038pV/xufKsKJ3pAHKSdWd UKnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dfBN/81CbKgO+ImSnt9bP3hiRFu9Ui+I7w3GQeYD0bA=; b=dSHqhLOUrjZVGogx+ypnwykofUIWd32iKYUY0JfDIx4/3K13jv/Gxmaqnar9GfDbjo zUfRSr1CMasUgeEHIFNlv/At0gTGKo3bgJXxDye6ZQtZ3ML3I08F2D8DL3NYTIrBx341 X3Z6vYB+0lKWRuTZJiw9HjdBgz9JwkU8NdD6AE6dYCIzA3dgPG67CQbFh3VpTvuGpK7c 9iQJ0fzzO2ECjwQJVdVfa+hyImFdW6z/7X2KfkOhVDjo5N6k23PQfL0uxAXz6YJyd565 xreCP7rdyLZO2YOmlYgXmNgjTUSR5MrocDxCtXHthvLlphka9DIcGsQquhZkeLT4muMo NwgQ== ARC-Authentication-Results: i=1; mx.google.com; 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=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 t9si11174232edq.488.2020.06.23.03.46.41; Tue, 23 Jun 2020 03:47:03 -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; 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=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732289AbgFWKoq (ORCPT + 99 others); Tue, 23 Jun 2020 06:44:46 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:41168 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732135AbgFWKoq (ORCPT ); Tue, 23 Jun 2020 06:44:46 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05NAXAXJ098070; Tue, 23 Jun 2020 06:44:38 -0400 Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0b-001b2d01.pphosted.com with ESMTP id 31ufmyruwj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Jun 2020 06:44:38 -0400 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05NAfv4U011201; Tue, 23 Jun 2020 10:44:36 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma03fra.de.ibm.com with ESMTP id 31sa381yp8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Jun 2020 10:44:36 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05NAiX6H60293182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 23 Jun 2020 10:44:33 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 40494AE05F; Tue, 23 Jun 2020 10:44:33 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2C7F7AE055; Tue, 23 Jun 2020 10:44:33 +0000 (GMT) Received: from t480-pf1aa2c2 (unknown [9.145.42.240]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 23 Jun 2020 10:44:33 +0000 (GMT) Received: from bblock by t480-pf1aa2c2 with local (Exim 4.94) (envelope-from ) id 1jngPn-002vYU-Vw; Tue, 23 Jun 2020 12:44:32 +0200 Date: Tue, 23 Jun 2020 12:44:31 +0200 From: Benjamin Block To: Mike Christie Cc: Bob Liu , linux-kernel@vger.kernel.org, tj@kernel.org, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, open-iscsi@googlegroups.com, lduncan@suse.com, maier@linux.ibm.com Subject: Re: [PATCH 2/2] scsi: register sysfs for scsi/iscsi workqueues Message-ID: <20200623104431.GE9340@t480-pf1aa2c2> References: <20200611100717.27506-1-bob.liu@oracle.com> <20200611100717.27506-2-bob.liu@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-23_05:2020-06-23,2020-06-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 phishscore=0 spamscore=0 clxscore=1011 cotscore=-2147483648 mlxlogscore=999 adultscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006230079 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 22, 2020 at 10:40:09AM -0500, Mike Christie wrote: > On 6/11/20 5:07 AM, Bob Liu wrote: > > This patch enable setting cpu affinity through "cpumask" for below > > scsi/iscsi workqueues, so as to get better isolation. > > - scsi_wq_* > > - scsi_tmf_* > > - iscsi_q_xx > > - iscsi_eh > > > > Signed-off-by: Bob Liu > > --- > > drivers/scsi/hosts.c | 4 ++-- > > drivers/scsi/libiscsi.c | 2 +- > > drivers/scsi/scsi_transport_iscsi.c | 2 +- > > 3 files changed, 4 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c > > index 1d669e4..4b9f80d 100644 > > --- a/drivers/scsi/hosts.c > > +++ b/drivers/scsi/hosts.c > > @@ -272,7 +272,7 @@ int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev, > > if (shost->transportt->create_work_queue) { > > snprintf(shost->work_q_name, sizeof(shost->work_q_name), > > "scsi_wq_%d", shost->host_no); > > - shost->work_q = create_singlethread_workqueue( > > + shost->work_q = create_singlethread_workqueue_noorder( > > shost->work_q_name); > > if (!shost->work_q) { > > error = -EINVAL; > > This patch seems ok for the iscsi, fc, tmf, and non transport class scan > uses. We are either heavy handed with flushes or did not need ordering. > > I don't know about the zfcp use though, so I cc'd the developers listed as > maintainers. It looks like for zfcp we can do: Thx for the notice. > > zfcp_scsi_rport_register->fc_remote_port_add->fc_remote_port_create->scsi_queue_work > to scan the scsi target on the rport. > > and then zfcp_scsi_rport_register can call zfcp_unit_queue_scsi_scan-> > scsi_queue_work which will scan for a specific lun. > > It looks ok if those are not ordered, but I would get their review to make > sure. I am not aware of any temporal requirements of those LUN-scans, so I think making them not explicitly ordered shouldn't hurt us. The target scan itself is protected again by `shost->scan_mutex`.. so all fine I think. -- Best Regards, Benjamin Block / Linux on IBM Z Kernel Development / IBM Systems IBM Deutschland Research & Development GmbH / https://www.ibm.com/privacy Vorsitz. AufsR.: Gregor Pillen / Gesch?ftsf?hrung: Dirk Wittkopp Sitz der Gesellschaft: B?blingen / Registergericht: AmtsG Stuttgart, HRB 243294