diff options
author | Peng Tao <tao.peng@primarydata.com> | 2015-06-26 09:45:49 +0800 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-06-26 14:01:37 -0400 |
commit | 9bbd9bb40cfae5ff35710e88866fcadb0e8f91ed (patch) | |
tree | 432e168ff7408d6d5386688f79459f083f9dcfc0 /fs/nfs/flexfilelayout/flexfilelayout.h | |
parent | 865a7ecb2131a3ba26cc1d49daf18275375109f0 (diff) |
pnfs/flexfiles: protect ktime manipulation with mirror lock
It looks as if xchg() and cmpxchg() are not available for 64-bit integers on sparc32:
> New breakage seen in linux-next today:
>
> ERROR: "__xchg_called_with_bad_pointer" [fs/nfs/flexfilelayout/nfs_layout_flexfiles.ko] undefined!
> ERROR: "__cmpxchg_called_with_bad_pointer" [fs/nfs/flexfilelayout/nfs_layout_flexfiles.ko] undefined!
> make[2]: *** [__modpost] Error 1
> make[1]: *** [modules] Error 2
Given that mirror ktime manipulation is already under mirror->lock, let's make use of the fact.
Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/flexfilelayout/flexfilelayout.h')
0 files changed, 0 insertions, 0 deletions