From 11381f3b3cfdb2a0dd15c942f0ecc89ac8084403 Mon Sep 17 00:00:00 2001 From: liupan1111 Date: Fri, 21 Oct 2016 00:37:05 +0800 Subject: [PATCH] iscsi: fix comment issue. If not specified reactor mask , we only use core 0. (#48) --- etc/spdk/iscsi.conf.in | 2 +- lib/event/app.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/spdk/iscsi.conf.in b/etc/spdk/iscsi.conf.in index 5e8263906..a649e7c95 100644 --- a/etc/spdk/iscsi.conf.in +++ b/etc/spdk/iscsi.conf.in @@ -16,7 +16,7 @@ # Users can restrict work items to only run on certain cores by # specifying a ReactorMask. Default is to allow work items to run - # on all cores. + # on core 0. #ReactorMask 0xFFFF # Tracepoint group mask for spdk trace buffers diff --git a/lib/event/app.c b/lib/event/app.c index 9c558cfa0..35976e6b5 100644 --- a/lib/event/app.c +++ b/lib/event/app.c @@ -320,8 +320,8 @@ spdk_app_init(struct spdk_app_opts *opts) /* * If mask not specified on command line or in configuration file, - * reactor_mask will be NULL which will enable all cores to run - * reactors. + * reactor_mask will be 0x1 which will enable core 0 to run one + * reactor. */ if (spdk_reactors_init(opts->reactor_mask, opts->max_delay_us)) { fprintf(stderr, "Invalid reactor mask.\n");