service_operation(): don't block signals, just use ..._killable

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
This commit is contained in:
Al Viro 2016-02-13 10:49:24 -05:00 committed by Mike Marshall
parent 98815ade9e
commit c72f15b7d9
3 changed files with 14 additions and 40 deletions

View file

@ -707,27 +707,6 @@ void orangefs_make_bad_inode(struct inode *inode)
}
}
/* Block all blockable signals... */
void orangefs_block_signals(sigset_t *orig_sigset)
{
sigset_t mask;
/*
* Initialize all entries in the signal set to the
* inverse of the given mask.
*/
siginitsetinv(&mask, sigmask(SIGKILL));
/* Block 'em Danno... */
sigprocmask(SIG_BLOCK, &mask, orig_sigset);
}
/* set the signal mask to the given template... */
void orangefs_set_signals(sigset_t *sigset)
{
sigprocmask(SIG_SETMASK, sigset, NULL);
}
/*
* The following is a very dirty hack that is now a permanent part of the
* ORANGEFS protocol. See protocol.h for more error definitions.