>>>>> "Huacai" == Huacai Chen <[email protected]> writes:

> You can try to remove this line in
> arch/mips/loongson/loongson-3/loongson3_cpuautoplug.c

>         BUG_ON(smp_processor_id() != 0);

Just removed that line, recompiled, and the kernel log still shows the
BUG: messages

 [  458.898437] BUG: using smp_processor_id() in preemptible [00000000] code: 
kworker/2:2/248
 [  458.898437] caller is crypt_convert+0x80/0x438 [dm_crypt]
 [  458.898437] Call Trace:
 [  458.898437] [<ffffffff80719990>] dump_stack+0x8/0x34
 [  458.898437] [<ffffffff804753bc>] debug_smp_processor_id+0xcc/0xf0
 [  458.898437] [<ffffffffc00b6bf4>] crypt_convert+0x80/0x438 [dm_crypt]
 [  458.898437] [<ffffffffc00b7090>] kcryptd_crypt+0xe4/0x524 [dm_crypt]
 [  458.898437] [<ffffffff802499b8>] process_one_work+0x290/0x4dc
 [  458.898437] [<ffffffff8024a100>] worker_thread+0x2b4/0x404
 [  458.898437] [<ffffffff8024e9c0>] kthread+0x88/0x90
 [  458.898437] [<ffffffff8020651c>] kernel_thread_helper+0x10/0x18

So yes you're right it's not directly related to autoplug.  However with
autoplug disabled, these errors still seem to vanish.  Will need to run
a few more tests to be sure.

David
-- 
GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk2.gpg
Fingerprint: B63B 6AF2 4EEB F033 46F7  7F1D 935E 6F08 E457 205F

Attachment: pgp8pe3TtUPhK.pgp
Description: PGP signature

Reply via email to