diff options
author | scottl <scottl@FreeBSD.org> | 2002-10-02 07:44:29 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2002-10-02 07:44:29 +0000 |
commit | 3a150bca9cc1b9ca767ca73d95fd54081237210b (patch) | |
tree | 0a9cc28f7570a42ae4e5df4cfc55dee42c36d9d8 /sys/netsmb/smb_iod.c | |
parent | 734ef490b8cfe3acc5f45425a63fac5e7c5173a3 (diff) | |
download | FreeBSD-src-3a150bca9cc1b9ca767ca73d95fd54081237210b.zip FreeBSD-src-3a150bca9cc1b9ca767ca73d95fd54081237210b.tar.gz |
Some kernel threads try to do significant work, and the default KSTACK_PAGES
doesn't give them enough stack to do much before blowing away the pcb.
This adds MI and MD code to allow the allocation of an alternate kstack
who's size can be speficied when calling kthread_create. Passing the
value 0 prevents the alternate kstack from being created. Note that the
ia64 MD code is missing for now, and PowerPC was only partially written
due to the pmap.c being incomplete there.
Though this patch does not modify anything to make use of the alternate
kstack, acpi and usb are good candidates.
Reviewed by: jake, peter, jhb
Diffstat (limited to 'sys/netsmb/smb_iod.c')
-rw-r--r-- | sys/netsmb/smb_iod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netsmb/smb_iod.c b/sys/netsmb/smb_iod.c index 38c8184..7edbc1b 100644 --- a/sys/netsmb/smb_iod.c +++ b/sys/netsmb/smb_iod.c @@ -676,7 +676,7 @@ smb_iod_create(struct smb_vc *vcp) smb_sl_init(&iod->iod_evlock, "90evl"); STAILQ_INIT(&iod->iod_evlist); error = kthread_create(smb_iod_thread, iod, &iod->iod_p, - RFNOWAIT, "smbiod%d", iod->iod_id); + RFNOWAIT, 0, "smbiod%d", iod->iod_id); if (error) { SMBERROR("can't start smbiod: %d", error); free(iod, M_SMBIOD); |