change dir kthreadReadWrite to spinlock