Re: Kernel 2.6.9 Multiple Page Allocation Failures

Andrew Morton
2004-11-10T21:08:44Z

Lukas Hejtmanek <xhejtman@mail.muni.cz> wrote:
>
> 2.6.10-rc1-mm3 with CONFIG_PREEMPT=y and CONFIG_PREEMPT_BKL=y
> results with: (and many more xfs related calls)
>
> Nov 10 21:21:05 undomiel1 kernel: BUG: using smp_processor_id() in preemptible [00000001] code: swapper/1
> Nov 10 21:21:05 undomiel1 kernel: caller is xfs_dir2_lookup+0x26/0x157
> Nov 10 21:21:05 undomiel1 kernel: [<c025dbf4>] smp_processor_id+0xa8/0xb8
> Nov 10 21:21:05 undomiel1 kernel: [<c020679b>] xfs_dir2_lookup+0x26/0x157
> Nov 10 21:21:05 undomiel1 kernel: [<c020679b>] xfs_dir2_lookup+0x26/0x157
> Nov 10 21:21:05 undomiel1 kernel: [<c025a4e7>] send_uevent+0x148/0x1a0

That's XFS_STATS_INC() and friends.

I don't think there's really a bug here. It's a tiny bit racy, but that
will merely cause a small inaccuracy in the stats.

I think I'll just drop the debug patch. You can disable
CONFIG_DEBUG_PREEMPT to shut things up.