bdev_aio: fix interrupt mode notify error
Change-Id: Ie4492aa33028e8090da96e2b592b20293d694120 Signed-off-by: Liu Xiaodong <xiaodong.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4865 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Community-CI: Mellanox Build Bot
This commit is contained in:
parent
e385cafa72
commit
47962dc7a3
@ -382,7 +382,8 @@ bdev_aio_group_interrupt(void *arg)
|
||||
|
||||
if (num_events > SPDK_AIO_QUEUE_DEPTH) {
|
||||
num_events -= SPDK_AIO_QUEUE_DEPTH;
|
||||
if (write(group_ch->efd, &num_events, sizeof(num_events))) {
|
||||
rc = write(group_ch->efd, &num_events, sizeof(num_events));
|
||||
if (rc < 0) {
|
||||
SPDK_ERRLOG("failed to notify aio group: %s.\n", spdk_strerror(errno));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user