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;