Commit 6490dbe4 authored by Roman Penyaev's avatar Roman Penyaev Committed by Tomasz Zawadzki
Browse files

thread: don't output error in case of EAGAIN for interrupt mode



Keep silence if nothing to read from message queue.

Signed-off-by: default avatarRoman Penyaev <rpenyaev@suse.de>
Change-Id: I6f3df6a58e708aa424fe2c6ebca509c44062d12c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5153


Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent c0648d4b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -523,7 +523,7 @@ msg_queue_run_batch(struct spdk_thread *thread, uint32_t max_msgs)
		 * This can avoid msg notification missing.
		 */
		rc = read(thread->msg_fd, &notify, sizeof(notify));
		if (rc < 0) {
		if (rc < 0 && errno != EAGAIN) {
			SPDK_ERRLOG("failed to acknowledge msg_queue: %s.\n", spdk_strerror(errno));
		}
	}