reduce the frequency of redundant ioctl syscalls