Rules for spinlocks Some rules apply to spinlocks Critical sections must be short Or you will create problems for others They must be atomic No sleeping! No user space access Multiple locks may be held Be careful about order spin_lock() calls do not nest Double-locking will cause deadlocks