Current code is not SMP safe. Use atomic_t type instead. Thanks, xiaowei