projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97a075c
)
staging: lustre: clio: add debug message in osc_completion()
author
Niu Yawei
<
[email protected]
>
Wed, 27 Apr 2016 22:21:02 +0000
(18:21 -0400)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 29 Apr 2016 04:51:58 +0000
(21:51 -0700)
Replace LASSERT with LASSERTF in osc_completion, thus we can get
more info when the LASSERT is triggered.
Signed-off-by: Niu Yawei <
[email protected]
>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3843
Reviewed-on: http://review.whamcloud.com/7494
Reviewed-by: Bobi Jam <
[email protected]
>
Reviewed-by: Jinshan Xiong <
[email protected]
>
Reviewed-by: Oleg Drokin <
[email protected]
>
Signed-off-by: James Simmons <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/lustre/lustre/osc/osc_cache.c
patch
|
blob
|
history
diff --git
a/drivers/staging/lustre/lustre/osc/osc_cache.c
b/drivers/staging/lustre/lustre/osc/osc_cache.c
index dccd309beb31954876dd6714b197edc949a75506..de28e42aeadb386fa5fe3c3409bf78588fd8e93c 100644
(file)
--- a/
drivers/staging/lustre/lustre/osc/osc_cache.c
+++ b/
drivers/staging/lustre/lustre/osc/osc_cache.c
@@
-1333,8
+1333,10
@@
static int osc_completion(const struct lu_env *env, struct osc_async_page *oap,
int srvlock;
cmd &= ~OBD_BRW_NOQUOTA;
- LASSERT(equi(page->cp_state == CPS_PAGEIN, cmd == OBD_BRW_READ));
- LASSERT(equi(page->cp_state == CPS_PAGEOUT, cmd == OBD_BRW_WRITE));
+ LASSERTF(equi(page->cp_state == CPS_PAGEIN, cmd == OBD_BRW_READ),
+ "cp_state:%u, cmd:%d\n", page->cp_state, cmd);
+ LASSERTF(equi(page->cp_state == CPS_PAGEOUT, cmd == OBD_BRW_WRITE),
+ "cp_state:%u, cmd:%d\n", page->cp_state, cmd);
LASSERT(opg->ops_transfer_pinned);
/*