From cfca19b02449b1f81b1dbda1ffa2886a64cb7406 Mon Sep 17 00:00:00 2001 From: Slawomir Jankowski Date: Thu, 9 Apr 2020 09:38:49 +0200 Subject: [PATCH] Use *run_ioctl* and *run_ioctl_retry* Signed-off-by: Slawomir Jankowski --- casadm/cas_lib_utils.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/casadm/cas_lib_utils.c b/casadm/cas_lib_utils.c index da82788..3a53806 100644 --- a/casadm/cas_lib_utils.c +++ b/casadm/cas_lib_utils.c @@ -457,7 +457,13 @@ int run_ioctl_interruptible(int fd, int command, void *cmd, pthread_sigmask(SIG_BLOCK, &sigset, NULL); pthread_create(&thread, 0, print_command_progress, &ps); - ioctl_res = run_ioctl(fd, command, cmd); + + if (retry) { + ioctl_res = run_ioctl_retry(fd, command, cmd); + } else { + ioctl_res = run_ioctl(fd, command, cmd); + } + if (!interrupted) { close(fdspipe[1]); }