summaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2017-06-08 08:23:07 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2017-06-08 08:23:07 -0700
commit95989c46d2a156365867b1d795fdefce71bce378 (patch)
tree300e849efbeefc8e35c4bf195a107c1002aca73d /fs/block_dev.c
parent63db7c815bc0997c29e484d2409684fdd9fcd93b (diff)
downloadblackbird-obmc-linux-95989c46d2a156365867b1d795fdefce71bce378.tar.gz
blackbird-obmc-linux-95989c46d2a156365867b1d795fdefce71bce378.zip
xfs: fix spurious spin_is_locked() assert failures on non-smp kernels
The 0-day kernel test robot reports assertion failures on !CONFIG_SMP kernels due to failed spin_is_locked() checks. As it turns out, spin_is_locked() is hardcoded to return zero on !CONFIG_SMP kernels and so this function cannot be relied on to verify spinlock state in this configuration. To avoid this problem, replace the associated asserts with lockdep variants that do the right thing regardless of kernel configuration. Drop the one assert that checks for an unlocked lock as there is no suitable lockdep variant for that case. This moves the spinlock checks from XFS debug code to lockdep, but generally provides the same level of protection. Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/block_dev.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud