diff options
author | Nikolay Borisov <[email protected]> | 2016-05-09 22:15:30 +0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-05-11 12:14:24 -0700 |
commit | 04bc461062df8e272aa11268668140c2976ac823 (patch) | |
tree | 4fc82710a9c9fcd944a9dfb8a82a11978677b58b /module/zfs/dsl_synctask.c | |
parent | 2a8b84b747cb27a175aa3a45b8cdb293cde31886 (diff) |
Reduce stack usage of dmu_recv_stream function
The receive_writer_arg and receive_arg structures become large
when ZFS is compiled with debugging enabled. This results in
gcc throwing an error about excessive stack usage:
module/zfs/dmu_send.c: In function ‘dmu_recv_stream’:
module/zfs/dmu_send.c:2502:1: error: the frame size of 1256 bytes is
larger than 1024 bytes [-Werror=frame-larger-than=]
Fix this by allocating those functions on the heap, rather than
on the stack.
With patch: dmu_send.c:2350:1:dmu_recv_stream 240 static
Without patch: dmu_send.c:2350:1:dmu_recv_stream 1336 static
Signed-off-by: Nikolay Borisov <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4620
Diffstat (limited to 'module/zfs/dsl_synctask.c')
0 files changed, 0 insertions, 0 deletions