BUG? a suspected race bug at cleaner_kthread()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello. I am reporting a suspected race bug at cleaner_kthread()
in btrfs/disk-io.c of Linux 2.6.30.4.

I hope this report is helpful. Please examine the report and
please let me know your opinion.

clear_ktherad() is spawned as a thread by open_ctree().

The function is finished if kthread_should_stop() or
root->fs_info->closing becomes non-zero.

If clear_kthread() is finished before other thread invoke
kthread_stop() for clear_kthread(),
the caller of kthread_stop() might have problem (waiting indefinitely).

It seems that close_ctree() set fs_info->closing
and then kthread_stop(root->fs_info->cleaner_kthread)
so that it might result this type of error.

Thank you

Sincerely
Shin Hong
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux