All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND 2/5] kexec: Export kexec_in_progress
@ 2014-12-02 18:47 ` Brian King
  0 siblings, 0 replies; 12+ messages in thread
From: Brian King @ 2014-12-02 18:47 UTC (permalink / raw)
  To: James.Bottomley; +Cc: wenxiong, linux-scsi, kexec, ebiederm, brking, hch, anton


A kexec boot for some ipr SAS adapters was seen to take ~20 seconds
just doing ipr adapter initialization. This is due to the fact that
a kexec invokes the driver's shutdown handler which places the adapter
into a state that requires a hard reset and resulting firmware initialization
to be usable again, which takes significant time. By exporting kexec_in_progress,
this process can be optimized significantly in the driver by essentially
placing the adapter into a state where this hardware reset and re-initialization
can be bypassed, eliminating this delay in kexec boot.

Cc: Eric Biederman <ebiederm@xmission.com>
Cc: kexec <kexec@lists.infradead.org>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
---

 kernel/kexec.c |    2 ++
 1 file changed, 2 insertions(+)

diff -puN kernel/kexec.c~kexec_export_in_prog kernel/kexec.c
--- scsi-queue/kernel/kexec.c~kexec_export_in_prog	2014-12-02 12:13:22.820325731 -0600
+++ scsi-queue-bjking1/kernel/kexec.c	2014-12-02 12:13:22.825325687 -0600
@@ -2768,3 +2768,5 @@ int kernel_kexec(void)
 	mutex_unlock(&kexec_mutex);
 	return error;
 }
+
+EXPORT_SYMBOL_GPL(kexec_in_progress);
_


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-12-10 22:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-02 18:47 [PATCH RESEND 2/5] kexec: Export kexec_in_progress Brian King
2014-12-02 18:47 ` Brian King
2014-12-02 18:49 ` Brian King
2014-12-02 18:49   ` Brian King
2014-12-08 21:13   ` Brian King
2014-12-08 21:13     ` Brian King
2014-12-08 21:38     ` Eric W. Biederman
2014-12-08 21:38       ` Eric W. Biederman
2014-12-10 22:52       ` Brian King
2014-12-10 22:52         ` Brian King
2014-12-02 21:24 ` wenxiong
2014-12-02 21:24   ` wenxiong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.