RDS: Use spinlock to protect 64b value update on 32b archs
We have a 64bit value that needs to be set atomically. This is easy and quick on all 64bit archs, and can also be done on x86/32 with set_64bit() (uses cmpxchg8b). However other 32b archs don't have this. I actually changed this to the current state in preparation for mainline because the old way (using a spinlock on 32b) resulted in unsightly #ifdefs in the code. But obviously, being correct takes precedence. Signed-off-by:Andy Grover <andy.grover@oracle.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- net/rds/ib.h 5 additions, 9 deletionsnet/rds/ib.h
- net/rds/ib_cm.c 8 additions, 1 deletionnet/rds/ib_cm.c
- net/rds/ib_recv.c 35 additions, 2 deletionsnet/rds/ib_recv.c
- net/rds/iw.h 5 additions, 9 deletionsnet/rds/iw.h
- net/rds/iw_cm.c 8 additions, 1 deletionnet/rds/iw_cm.c
- net/rds/iw_recv.c 35 additions, 2 deletionsnet/rds/iw_recv.c
- net/rds/rds.h 4 additions, 0 deletionsnet/rds/rds.h
Loading
Please register or sign in to comment