iscsi: fix comment issue. If not specified reactor mask , we only use core 0. (#48)

This commit is contained in:
liupan1111 2016-10-21 00:37:05 +08:00 committed by Ben Walker
parent 22b12b319e
commit 11381f3b3c
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
# Users can restrict work items to only run on certain cores by # Users can restrict work items to only run on certain cores by
# specifying a ReactorMask. Default is to allow work items to run # specifying a ReactorMask. Default is to allow work items to run
# on all cores. # on core 0.
#ReactorMask 0xFFFF #ReactorMask 0xFFFF
# Tracepoint group mask for spdk trace buffers # Tracepoint group mask for spdk trace buffers

View File

@ -320,8 +320,8 @@ spdk_app_init(struct spdk_app_opts *opts)
/* /*
* If mask not specified on command line or in configuration file, * If mask not specified on command line or in configuration file,
* reactor_mask will be NULL which will enable all cores to run * reactor_mask will be 0x1 which will enable core 0 to run one
* reactors. * reactor.
*/ */
if (spdk_reactors_init(opts->reactor_mask, opts->max_delay_us)) { if (spdk_reactors_init(opts->reactor_mask, opts->max_delay_us)) {
fprintf(stderr, "Invalid reactor mask.\n"); fprintf(stderr, "Invalid reactor mask.\n");