Return-Path: Received: from us-smtp-delivery-194.mimecast.com ([63.128.21.194]:40367 "EHLO us-smtp-delivery-194.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799AbdKEQA2 (ORCPT ); Sun, 5 Nov 2017 11:00:28 -0500 From: Trond Myklebust To: "dvyukov@google.com" , "bot+d8fe95298ef830cd7d05e33eefa4a5a6f6f334d4@syzkaller.appspotmail.com" CC: "linux-kernel@vger.kernel.org" , "bfields@fieldses.org" , "linux-nfs@vger.kernel.org" , "jlayton@poochiereds.net" , "jiangshanlai@gmail.com" , "anna.schumaker@netapp.com" , "netdev@vger.kernel.org" , "syzkaller-bugs@googlegroups.com" , "tj@kernel.org" , "davem@davemloft.net" Subject: Re: possible deadlock in flush_work (2) Date: Sun, 5 Nov 2017 16:00:17 +0000 Message-ID: <1509897615.5851.1.camel@primarydata.com> References: <001a113ee9baf95598055d384ecb@google.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: DQoNCk9uIFN1biwgMjAxNy0xMS0wNSBhdCAxMTo1MyArMDMwMCwgRG1pdHJ5IFZ5dWtvdiB3cm90 ZToNCj4gT24gU3VuLCBOb3YgNSwgMjAxNyBhdCAxMTo0MSBBTSwgc3l6Ym90DQo+IDxib3QrZDhm ZTk1Mjk4ZWY4MzBjZDdkMDVlMzNlZWZhNGE1YTZmNmYzMzRkNEBzeXprYWxsZXIuYXBwc3BvdG1h aWwuYw0KPiBvbT4NCj4gd3JvdGU6DQo+ID4gSGVsbG8sDQo+ID4gDQo+ID4gc3l6a2FsbGVyIGhp dCB0aGUgZm9sbG93aW5nIGNyYXNoIG9uDQo+ID4gMGY2MTFmYjZkY2MwZDZkOTFiNGUxZmVjOTEx MzIxZjQzNGEzYjg1OA0KPiA+IGdpdDovL2dpdC5jbXB4Y2hnLm9yZy9saW51eC1tbW90cy5naXQv bWFzdGVyDQo+ID4gY29tcGlsZXI6IGdjY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