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:
b89d420
)
xfs: fix spin_is_locked assert on uni-processor builds
author
Christoph Hellwig
<
[email protected]
>
Mon, 10 Aug 2009 14:32:44 +0000
(11:32 -0300)
committer
Felix Blyakher
<
[email protected]
>
Wed, 12 Aug 2009 06:08:27 +0000
(
01:08
-0500)
Without SMP or preemption spin_is_locked always returns false,
so we can't do an assert with it. Instead use assert_spin_locked,
which does the right thing on all builds.
Signed-off-by: Christoph Hellwig <
[email protected]
>
Reviewed-by: Eric Sandeen <
[email protected]
>
Reported-by: Johannes Engel <
[email protected]
>
Tested-by: Johannes Engel <
[email protected]
>
Signed-off-by: Felix Blyakher <
[email protected]
>
fs/xfs/xfs_log.c
patch
|
blob
|
history
diff --git
a/fs/xfs/xfs_log.c
b/fs/xfs/xfs_log.c
index 3750f04ede0bf283a4592cb05a5ce4e04884b45b..9dbdff3ea484bf008d1b634a53a2f42aedb3effc 100644
(file)
--- a/
fs/xfs/xfs_log.c
+++ b/
fs/xfs/xfs_log.c
@@
-3180,7
+3180,7
@@
try_again:
STATIC void
xlog_state_want_sync(xlog_t *log, xlog_in_core_t *iclog)
{
-
ASSERT(spin_is_locked(&log->l_icloglock)
);
+
assert_spin_locked(&log->l_icloglock
);
if (iclog->ic_state == XLOG_STATE_ACTIVE) {
xlog_state_switch_iclogs(log, iclog, 0);