Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933753AbcKIPJB (ORCPT ); Wed, 9 Nov 2016 10:09:01 -0500 Received: from us-smtp-delivery-194.mimecast.com ([63.128.21.194]:56533 "EHLO us-smtp-delivery-194.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932616AbcKIPI6 (ORCPT ); Wed, 9 Nov 2016 10:08:58 -0500 From: Trond Myklebust To: "bfields@fieldses.org" , "tj@kernel.org" , "jlayton@poochiereds.net" CC: "bhaktipriya96@gmail.com" , "linux-kernel@vger.kernel.org" , "linux-nfs@vger.kernel.org" Subject: Re: [PATCH v2] fs/nfsd/nfs4callback: Remove deprecated create_singlethread_workqueue Thread-Topic: [PATCH v2] fs/nfsd/nfs4callback: Remove deprecated create_singlethread_workqueue Thread-Index: AQHSAwCjpIdGs5biak6a8oJ0WnFXOqDQCxSAgAAUcYCAACtTgIAAxpMAgAAe7IA= Date: Wed, 9 Nov 2016 15:08:52 +0000 Message-ID: <1478704129.15658.1.camel@primarydata.com> References: <20160830205348.GA31915@Karyakshetra> <20161108213911.GA27681@fieldses.org> <20161108225221.GB6460@htj.duckdns.org> <20161109012725.GA29930@fieldses.org> <1478697488.7930.7.camel@poochiereds.net> In-Reply-To: <1478697488.7930.7.camel@poochiereds.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [68.49.162.121] x-ms-office365-filtering-correlation-id: e49191ed-63cb-4c57-303a-08d408b25143 x-microsoft-exchange-diagnostics: 1;BN6PR11MB1571;7:pIgbRhJR2EE4FZb3GWIIezHwwabUkA8ECHJwOu2N1Q2VeK6X9kRhVxFwWuW8QFy5zjh9I8Lxm6m6lkFCLagRT3fb4ojk5j8yZSHNqlnJBooHOXzV+Rpk0+VBgRsAlHPV1UNvUX9/uD4Ccn9R0d0e+4YUayFpmNLs5ywXfQw3EGf/xAEWpID+pr6HySvdWKwE9p/27cQAh1oxCOhoQRRcH/MmnvBKQYXwZmIvMWNJjfOFkO77BFly02LIHj3a3/wx0b1G0C7aSIMxVtCNIgXoLYrIpN0kvTAIlQNPGKr//61xhMKE5xiSsUvV3/zdq31bi7fY5sFGtG502S+XK8b9lmf7tpATY21Ati5FX61W3NU=;20:4NhVHD1hLwIPAzUOTRPvbd696xMjfGL1Os6s/uyojKtzWFr8T0cR4ngc0bssgcbbues9AKAVKvlhSJ9oc4byh+N3bx1oEKh9Xi4a3HX6NpS7TmuX1B9swhhUhEiqxkYaIOqUmFE/MoNU7AdZSxtpQHFZaZLlJGOd76RY2RkwsiE= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN6PR11MB1571; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6043046)(6042046);SRVR:BN6PR11MB1571;BCL:0;PCL:0;RULEID:;SRVR:BN6PR11MB1571; x-forefront-prvs: 0121F24F22 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(199003)(24454002)(377424004)(189002)(77096005)(8676002)(2900100001)(68736007)(3846002)(102836003)(586003)(66066001)(8936002)(81156014)(81166006)(92566002)(87936001)(6116002)(2501003)(5660300001)(2950100002)(76176999)(54356999)(50986999)(101416001)(97736004)(105586002)(99286002)(5001770100001)(36756003)(106356001)(106116001)(305945005)(86362001)(7846002)(7736002)(2201001)(2906002)(122556002)(4326007)(3660700001)(3280700002)(33646002)(103116003)(189998001)(93886004);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR11MB1571;H:BN6PR11MB1570.namprd11.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-ID: MIME-Version: 1.0 X-OriginatorOrg: primarydata.com X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Nov 2016 15:08:52.3598 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 03193ed6-8726-4bb3-a832-18ab0d28adb7 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1571 X-MC-Unique: xCWs3WIZOVSM3Pjj5FqlRw-1 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id uA9F97LO016697 Content-Length: 1888 Lines: 71 On Wed, 2016-11-09 at 08:18 -0500, Jeff Layton wrote: > On Tue, 2016-11-08 at 20:27 -0500, J. Bruce Fields wrote: > > > > On Tue, Nov 08, 2016 at 05:52:21PM -0500, Tejun Heo wrote: > > > > > > > > > Hello, Bruce. > > > > > > On Tue, Nov 08, 2016 at 04:39:11PM -0500, J. Bruce Fields wrote: > > > > > > > > > > > > Apologies, just cleaning out old mail and finding some I should > > > > have > > > > responded to long ago: > > > > > > > > On Wed, Aug 31, 2016 at 02:23:48AM +0530, Bhaktipriya Shridhar > > > > wrote: > > > > > > > > > > > > > > > The workqueue "callback_wq" queues a single work item &cb- > > > > > >cb_work per > > > > > nfsd4_callback instance and thus, it doesn't require > > > > > execution ordering. > > > > > > > > What's "execution ordering"? > > > > > > AIUI, it means that jobs are always run in the order queued and are > serialized. > > > > > > > > > > > > > > We definitely do depend on the fact that at most one of these > > > > is running > > > > at a time. > > > > > We do? > > > > > > > > > If there can be multiple cb's and thus cb->cb_work's per > > > callback_wq, > > > it'd need explicit ordering.  Is that the case? > > > > These are basically client RPC tasks, and the cb_work just handles > the > submission into the client RPC state machine. Just because we're > running > several callbacks at the same time doesn't mean that they need to be > strictly ordered. The client state machine can certainly handle > running > these in parallel. > > > > > Yes, there can be multiple cb_work's. > > > > Yes, but each is effectively a separate work unit. I see no reason > why > we'd need to order them at all. > There needs to be serialisation at the session level (i.e. the callbacks have to respect the slot limits set by the client) however there shouldn’t be a need for serialisation at the RPC level. Cheers   Trond