summaryrefslogtreecommitdiff
path: root/fs/orangefs/waitqueue.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-01-23 20:26:56 +0300
committerMike Marshall <hubcap@omnibond.com>2016-01-23 23:15:09 +0300
commite1056a9cc35c878b6615d0fc84d3f338c89a38fa (patch)
tree7e0d583f3cf52ae7cb37b100df4606e9c2ce4f63 /fs/orangefs/waitqueue.c
parented42fe059389daa35a2aa10ec832e9f8d0a9e59e (diff)
downloadlinux-e1056a9cc35c878b6615d0fc84d3f338c89a38fa.tar.xz
orangefs: remove cargo-culting spin_lock_irqsave() in service_operation()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/waitqueue.c')
-rw-r--r--fs/orangefs/waitqueue.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/orangefs/waitqueue.c b/fs/orangefs/waitqueue.c
index 2e9468f57981..b8a2fcbcce64 100644
--- a/fs/orangefs/waitqueue.c
+++ b/fs/orangefs/waitqueue.c
@@ -86,9 +86,6 @@ int service_operation(struct orangefs_kernel_op_s *op,
sigset_t orig_sigset;
int ret = 0;
- /* irqflags and wait_entry are only used IF the client-core aborts */
- unsigned long irqflags;
-
DEFINE_WAIT(wait_entry);
op->upcall.tgid = current->tgid;
@@ -230,11 +227,9 @@ retry_servicing:
* let process sleep for a few seconds so shared
* memory system can be initialized.
*/
- spin_lock_irqsave(&op->lock, irqflags);
prepare_to_wait(&orangefs_bufmap_init_waitq,
&wait_entry,
TASK_INTERRUPTIBLE);
- spin_unlock_irqrestore(&op->lock, irqflags);
/*
* Wait for orangefs_bufmap_initialize() to wake me up
@@ -251,9 +246,7 @@ retry_servicing:
"Is shared memory available? (%d).\n",
orangefs_get_bufmap_init());
- spin_lock_irqsave(&op->lock, irqflags);
finish_wait(&orangefs_bufmap_init_waitq, &wait_entry);
- spin_unlock_irqrestore(&op->lock, irqflags);
if (orangefs_get_bufmap_init() == 0) {
gossip_err("%s:The shared memory system has not started in %d seconds after the client core restarted. Aborting user's request(%s).\n",