Do not allocate a callout for all crashdumps, not just when you panic.
This commit is contained in:
parent
9fa3f7b0f2
commit
16a011f973
@ -388,7 +388,7 @@ ad_transfer(struct ad_request *request)
|
||||
if (request->donecount == 0) {
|
||||
|
||||
/* start timeout for this transfer */
|
||||
if (panicstr)
|
||||
if (dumping)
|
||||
request->timeout_handle.callout = NULL;
|
||||
else
|
||||
request->timeout_handle =
|
||||
|
@ -109,6 +109,8 @@ watchdog_tickle_fn wdog_tickler = NULL;
|
||||
*/
|
||||
const char *panicstr;
|
||||
|
||||
int dumping; /* system is dumping */
|
||||
|
||||
static void boot(int) __dead2;
|
||||
static void dumpsys(void);
|
||||
static void poweroff_wait(void *, int);
|
||||
@ -469,7 +471,6 @@ static void
|
||||
dumpsys(void)
|
||||
{
|
||||
int error;
|
||||
static int dumping;
|
||||
|
||||
savectx(&dumppcb);
|
||||
#ifdef __i386__
|
||||
|
@ -50,6 +50,7 @@ extern int securelevel; /* system security level (see init(8)) */
|
||||
|
||||
extern int cold; /* nonzero if we are doing a cold boot */
|
||||
extern const char *panicstr; /* panic message */
|
||||
extern int dumping; /* system is dumping */
|
||||
extern int safepri; /* safe ipl when cold or panicing */
|
||||
extern char version[]; /* system version */
|
||||
extern char copyright[]; /* system copyright */
|
||||
|
Loading…
Reference in New Issue
Block a user