Re: [V2 PATCH 3/4] scsi:stex.c Add reboot support

2014-11-14 Thread Greg Kroah-Hartman
On Wed, Nov 12, 2014 at 09:27:50AM -0800, Christoph Hellwig wrote: > > +static int stex_reboot_callback(struct notifier_block *self, > > + unsigned long val, > > + void *data) > > +{ > > + if

Re: [V2 PATCH 3/4] scsi:stex.c Add reboot support

2014-11-14 Thread Greg Kroah-Hartman
On Wed, Nov 12, 2014 at 09:27:50AM -0800, Christoph Hellwig wrote: +static int stex_reboot_callback(struct notifier_block *self, + unsigned long val, + void *data) +{ + if (val ==

Re: [V2 PATCH 3/4] scsi:stex.c Add reboot support

2014-11-13 Thread Charles Chiou
On 11/13/2014 06:07 PM, Charles Chiou wrote: On 11/13/2014 01:27 AM, Christoph Hellwig wrote: +static int stex_reboot_callback(struct notifier_block *self, + unsigned long val, + void *data) +{ +if (val == SYS_RESTART) +

Re: [V2 PATCH 3/4] scsi:stex.c Add reboot support

2014-11-13 Thread Charles Chiou
On 11/13/2014 01:27 AM, Christoph Hellwig wrote: +static int stex_reboot_callback(struct notifier_block *self, + unsigned long val, + void *data) +{ + if (val == SYS_RESTART) +

Re: [V2 PATCH 3/4] scsi:stex.c Add reboot support

2014-11-13 Thread Charles Chiou
On 11/13/2014 01:27 AM, Christoph Hellwig wrote: +static int stex_reboot_callback(struct notifier_block *self, + unsigned long val, + void *data) +{ + if (val == SYS_RESTART) +

Re: [V2 PATCH 3/4] scsi:stex.c Add reboot support

2014-11-13 Thread Charles Chiou
On 11/13/2014 06:07 PM, Charles Chiou wrote: On 11/13/2014 01:27 AM, Christoph Hellwig wrote: +static int stex_reboot_callback(struct notifier_block *self, + unsigned long val, + void *data) +{ +if (val == SYS_RESTART) +

Re: [V2 PATCH 3/4] scsi:stex.c Add reboot support

2014-11-12 Thread Christoph Hellwig
> +static int stex_reboot_callback(struct notifier_block *self, > + unsigned long val, > + void *data) > +{ > + if (val == SYS_RESTART) > + isRestart = 1; > + return

Re: [V2 PATCH 3/4] scsi:stex.c Add reboot support

2014-11-12 Thread Christoph Hellwig
+static int stex_reboot_callback(struct notifier_block *self, + unsigned long val, + void *data) +{ + if (val == SYS_RESTART) + isRestart = 1; + return NOTIFY_OK;

[V2 PATCH 3/4] scsi:stex.c Add reboot support

2014-11-11 Thread Charles Chiou
From 5eac0f3209e0857c983c986786a68eac0d67247b Mon Sep 17 00:00:00 2001 From: Charles Chiou Date: Wed, 5 Nov 2014 19:29:46 +0800 Subject: [PATCH 3/4] scsi:stex.c Add reboot support 1. Add reboot support, Pegasus devices should be notified that the host is going to shutdown/reboot. I register

[V2 PATCH 3/4] scsi:stex.c Add reboot support

2014-11-11 Thread Charles Chiou
From 5eac0f3209e0857c983c986786a68eac0d67247b Mon Sep 17 00:00:00 2001 From: Charles Chiou charles.ch...@tw.promise.com Date: Wed, 5 Nov 2014 19:29:46 +0800 Subject: [PATCH 3/4] scsi:stex.c Add reboot support 1. Add reboot support, Pegasus devices should be notified that the host is going to