Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
38f5814d
Commit
38f5814d
authored
21 years ago
by
Andreas Dilger
Browse files
Options
Downloads
Patches
Plain Diff
Silence some compiler warnings.
parent
364960fb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lustre/include/linux/obd_support.h
+4
-3
4 additions, 3 deletions
lustre/include/linux/obd_support.h
lustre/ldlm/ldlm_lib.c
+1
-1
1 addition, 1 deletion
lustre/ldlm/ldlm_lib.c
with
5 additions
and
4 deletions
lustre/include/linux/obd_support.h
+
4
−
3
View file @
38f5814d
...
@@ -156,13 +156,12 @@ do { \
...
@@ -156,13 +156,12 @@ do { \
#define OBD_FAIL_TIMEOUT(id, secs) \
#define OBD_FAIL_TIMEOUT(id, secs) \
do { \
do { \
if (OBD_FAIL_CHECK_ONCE(id)) { \
if (OBD_FAIL_CHECK_ONCE(id)) { \
CERROR("obd_fail_timeout id %x sleeping for %
l
d secs\n", \
CERROR("obd_fail_timeout id %x sleeping for %d secs\n", \
(id), (secs)); \
(id), (secs)); \
set_current_state(TASK_UNINTERRUPTIBLE); \
set_current_state(TASK_UNINTERRUPTIBLE); \
schedule_timeout((secs) * HZ); \
schedule_timeout((secs) * HZ); \
set_current_state(TASK_RUNNING); \
set_current_state(TASK_RUNNING); \
CERROR("obd_fail_timeout id %x awake\n", \
CERROR("obd_fail_timeout id %x awake\n", (id)); \
(id)); \
} \
} \
} while(0)
} while(0)
...
@@ -183,6 +182,8 @@ do { \
...
@@ -183,6 +182,8 @@ do { \
#define ll_lock_kernel
#define ll_lock_kernel
#endif
#endif
void
dev_set_rdonly
(
kdev_t
dev
,
int
no_write
);
void
dev_clear_rdonly
(
int
);
static
inline
void
OBD_FAIL_WRITE
(
int
id
,
kdev_t
dev
)
static
inline
void
OBD_FAIL_WRITE
(
int
id
,
kdev_t
dev
)
{
{
...
...
This diff is collapsed.
Click to expand it.
lustre/ldlm/ldlm_lib.c
+
1
−
1
View file @
38f5814d
...
@@ -496,7 +496,7 @@ static void reset_recovery_timer(struct obd_device *obd)
...
@@ -496,7 +496,7 @@ static void reset_recovery_timer(struct obd_device *obd)
if
(
!
recovering
)
if
(
!
recovering
)
return
;
return
;
CERROR
(
"timer will expire in %
l
d seconds
\n
"
,
OBD_RECOVERY_TIMEOUT
/
HZ
);
CERROR
(
"timer will expire in %d seconds
\n
"
,
OBD_RECOVERY_TIMEOUT
/
HZ
);
mod_timer
(
&
obd
->
obd_recovery_timer
,
jiffies
+
OBD_RECOVERY_TIMEOUT
);
mod_timer
(
&
obd
->
obd_recovery_timer
,
jiffies
+
OBD_RECOVERY_TIMEOUT
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment