From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751348Ab3CASrQ (ORCPT ); Fri, 1 Mar 2013 13:47:16 -0500 Received: from [207.46.163.212] ([207.46.163.212]:34316 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750779Ab3CASrP convert rfc822-to-8bit (ORCPT ); Fri, 1 Mar 2013 13:47:15 -0500 X-Forefront-Antispam-Report-Untrusted: CIP:157.56.240.21;KIP:(null);UIP:(null);(null);H:BL2PRD0310HT004.namprd03.prod.outlook.com;R:internal;EFV:INT X-SpamScore: -2 X-BigFish: PS-2(zz98dI9371I542I1432Izz1f42h1ee6h1de0h1202h1e76h1d1ah1d2ahzz8275ch8275dh8275bhz31h2a8h668h839h944hd24hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h1ad9h9a9j1155h) X-Forefront-Antispam-Report-Untrusted: SFV:SKI;SFS:;DIR:OUT;SFP:;SCL:-1;SRVR:SN2PR03MB063;H:SN2PR03MB061.namprd03.prod.outlook.com;LANG:en; From: KY Srinivasan To: "gregkh@linuxfoundation.org" CC: "olaf@aepfle.de" , Jiri Kosina , "jasowang@redhat.com" , "linux-kernel@vger.kernel.org" , "James.Bottomley@HansenPartnership.com" , "apw@canonical.com" , "devel@linuxdriverproject.org" , "davem@davemloft.net" Subject: RE: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context Thread-Topic: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context Thread-Index: AQHN+dCsx+V+FBWESk2aq+oN9Eqam5hYQkaAgABz/iCAAAOHAIA4cQtAgAAQXwCAACjz4A== Date: Fri, 1 Mar 2013 18:40:52 +0000 Message-ID: <947c89e9d8f04f2495ac520e077244c7@SN2PR03MB061.namprd03.prod.outlook.com> References: <1358991737-22675-1-git-send-email-kys@microsoft.com> <1358991765-22715-1-git-send-email-kys@microsoft.com> <1358991765-22715-6-git-send-email-kys@microsoft.com> <53da151ef8494d5084ef5aa089b9f102@SN2PR03MB061.namprd03.prod.outlook.com> <20130124171740.GA5420@kroah.com> <524a403348d240a8b24db0177e7aaecd@SN2PR03MB061.namprd03.prod.outlook.com> <20130301161124.GA3969@kroah.com> In-Reply-To: <20130301161124.GA3969@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.255.156.132] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OrganizationHeadersPreserved: SN2PR03MB063.namprd03.prod.outlook.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-FOPE-CONNECTOR: Id%59$Dn%CANONICAL.COM$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn% X-FOPE-CONNECTOR: Id%59$Dn%HANSENPARTNERSHIP.COM$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn% X-FOPE-CONNECTOR: Id%59$Dn%DAVEMLOFT.NET$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn% X-FOPE-CONNECTOR: Id%59$Dn%LINUXDRIVERPROJECT.ORG$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn% X-FOPE-CONNECTOR: Id%59$Dn%VGER.KERNEL.ORG$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn% X-FOPE-CONNECTOR: Id%59$Dn%AEPFLE.DE$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn% X-FOPE-CONNECTOR: Id%59$Dn%LINUXFOUNDATION.ORG$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn% X-FOPE-CONNECTOR: Id%59$Dn%REDHAT.COM$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn% X-FOPE-CONNECTOR: Id%59$Dn%SUSE.CZ$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn% X-CrossPremisesHeadersPromoted: TK5EX14MLTC102.redmond.corp.microsoft.com X-CrossPremisesHeadersFiltered: TK5EX14MLTC102.redmond.corp.microsoft.com X-Forefront-Antispam-Report: CIP:131.107.125.37;CTRY:US;IPV:CAL;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(377454001)(189002)(51704002)(199002)(13464002)(24454001)(50466001)(31966008)(56816002)(51856001)(76482001)(74502001)(44976002)(77982001)(46406002)(65816001)(59766001)(4396001)(80022001)(47736001)(46102001)(56776001)(63696002)(54356001)(47976001)(5343645001)(23726001)(53806001)(20776003)(49866001)(6806001)(47446002)(54316002)(5343635001)(47776003)(50986001)(16676001)(79102001)(5343655001)(33646001)(74662001)(24736002);DIR:OUT;SFP:;SCL:1;SRVR:BL2FFO11HUB019;H:TK5EX14MLTC102.redmond.corp.microsoft.com;RD:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-OriginatorOrg: microsoft.onmicrosoft.com X-Forefront-PRVS: 0772E5DAD5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: gregkh@linuxfoundation.org [mailto:gregkh@linuxfoundation.org] > Sent: Friday, March 01, 2013 11:11 AM > To: KY Srinivasan > Cc: olaf@aepfle.de; Jiri Kosina; jasowang@redhat.com; linux- > kernel@vger.kernel.org; James.Bottomley@HansenPartnership.com; > apw@canonical.com; devel@linuxdriverproject.org; davem@davemloft.net > Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context > > On Fri, Mar 01, 2013 at 03:15:58PM +0000, KY Srinivasan wrote: > > > > > > Execute the shutdown code in a thread context. With recent changes > made > > > > > the > > > > > > shutdown code, shutdown code cannot be invoked from an interrupt > > > context. > > > > > > > > > > > > Signed-off-by: K. Y. Srinivasan > > > > > > Reviewed-by: Haiyang Zhang > > > > > > --- > > > > > > drivers/hv/hv_util.c | 12 +++++++++++- > > > > > > 1 files changed, 11 insertions(+), 1 deletions(-) > > > > > > > > > > > > diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c > > > > > > index 8b7868a..aceb67f 100644 > > > > > > --- a/drivers/hv/hv_util.c > > > > > > +++ b/drivers/hv/hv_util.c > > > > > > @@ -49,6 +49,16 @@ static struct hv_util_service util_kvp = { > > > > > > .util_deinit = hv_kvp_deinit, > > > > > > }; > > > > > > > > > > > > +static void perform_shutdown(struct work_struct *dummy) > > > > > > +{ > > > > > > + orderly_poweroff(true); > > > > > > +} > > > > > > > > > > Is there any particular reason for this kind of crazy indentation? > > > > I don't know how this extra tab crept through! Greg, if you want I can > resend > > > > this patch minus the extra tab. Let me know. > > > > > > I'll edit it by hand, but someone owes me a beer for it... :) > > > > Greg, > > > > You have already applied this. There has been some customer request for > getting this > > patch into 3.7 (3.7 is where the Hyper-V shutdown code ceased to work > because of > > some other patches unrelated to Hyper-V that went in). What is the process for > requesting > > that this patch be applied all the way back to 3.7. > > You have read the file, Documentation/stable_kernel_rules.txt, right? > > But please remember, the 3.7 kernel is now end-of-life, as of the 3.7.10 > kernel release, so even if this was a bug fix that was applicable to > stable kernels, it would be impossible to get it into the 3.7.y > releases, without going back in time. Thanks Greg. K. Y > > sorry, > > greg k-h >