Skip to content

Commit

Permalink
orangefs: make devreq_mutex static
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
  • Loading branch information
Martin Brandenburg committed Aug 15, 2016
1 parent c27889c commit a0fe051
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions fs/orangefs/devorangefs-req.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

static int open_access_count;

static DEFINE_MUTEX(devreq_mutex);

#define DUMP_DEVICE_ERROR() \
do { \
gossip_err("*****************************************************\n");\
Expand Down
1 change: 0 additions & 1 deletion fs/orangefs/orangefs-kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,6 @@ bool orangefs_cancel_op_in_progress(struct orangefs_kernel_op_s *op);

int orangefs_normalize_to_errno(__s32 error_code);

extern struct mutex devreq_mutex;
extern struct mutex request_mutex;
extern int debug;
extern int op_timeout_secs;
Expand Down
3 changes: 0 additions & 3 deletions fs/orangefs/orangefs-mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ module_param(module_parm_debug_mask, ulong, 0644);
module_param(op_timeout_secs, int, 0);
module_param(slot_timeout_secs, int, 0);

/* synchronizes the request device file */
DEFINE_MUTEX(devreq_mutex);

/*
* Blocks non-priority requests from being queued for servicing. This
* could be used for protecting the request list data structure, but
Expand Down

0 comments on commit a0fe051

Please sign in to comment.