thread: don't output error in case of EAGAIN for interrupt mode
Keep silence if nothing to read from message queue. Signed-off-by: Roman 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: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
c0648d4b45
commit
6490dbe4fe
@ -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, ¬ify, sizeof(notify));
|
||||
if (rc < 0) {
|
||||
if (rc < 0 && errno != EAGAIN) {
|
||||
SPDK_ERRLOG("failed to acknowledge msg_queue: %s.\n", spdk_strerror(errno));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user