mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Only reduce __zio_execute() stack usage in kernel space
Related to 91579709fc
we need to
be very careful about not overrunning the stack in kernel space.
However, in user space we're already allowing slightly larger
stacks so this stack usage optimization is not required there.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
c1cdd9900b
commit
4cec9b2dc7
@ -1281,6 +1281,7 @@ __zio_execute(zio_t *zio)
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef _KERNEL
|
||||
/*
|
||||
* If we executing in the context of the tx_sync_thread,
|
||||
* or we are performing pool initialization outside of a
|
||||
@ -1293,6 +1294,7 @@ __zio_execute(zio_t *zio)
|
||||
zio_taskq_dispatch(zio, ZIO_TASKQ_ISSUE, cut);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
zio->io_stage = stage;
|
||||
rv = zio_pipeline[highbit(stage) - 1](zio);
|
||||
|
Loading…
Reference in New Issue
Block a user