Whamcloud - gitweb
LU-9859 libcfs: improve API and implementation of blocking signals.
[fs/lustre-release.git] / lustre / ptlrpc / client.c
index 758d86e..5602b58 100644 (file)
@@ -2477,9 +2477,10 @@ int ptlrpc_set_wait(const struct lu_env *env, struct ptlrpc_request_set *set)
                         */
                        if (rc == -ETIMEDOUT &&
                            signal_pending(current)) {
-                               sigset_t blocked_sigs =
-                                       cfs_block_sigsinv(LUSTRE_FATAL_SIGS);
+                               sigset_t blocked_sigs;
 
+                               cfs_block_sigsinv(LUSTRE_FATAL_SIGS,
+                                                 &blocked_sigs);
                                /*
                                 * In fact we only interrupt for the
                                 * "fatal" signals like SIGINT or
@@ -2490,7 +2491,7 @@ int ptlrpc_set_wait(const struct lu_env *env, struct ptlrpc_request_set *set)
                                 */
                                if (signal_pending(current))
                                        ptlrpc_interrupted_set(set);
-                               cfs_restore_sigs(blocked_sigs);
+                               cfs_restore_sigs(&blocked_sigs);
                        }
                }