[PATCH RFC v1 1/1] mtd_blkdevs: avoid soft lockups with some mtd/spi devices

Richard Weinberger richard at nod.at
Wed Jan 26 01:08:43 PST 2022


David,

----- Ursprüngliche Mail -----
> Von: "David Decotigny" <decot+git at google.com>
> An: "linux-kernel" <linux-kernel at vger.kernel.org>
> CC: "Miquel Raynal" <miquel.raynal at bootlin.com>, "richard" <richard at nod.at>, "Vignesh Raghavendra" <vigneshr at ti.com>,
> "linux-mtd" <linux-mtd at lists.infradead.org>, "David Decotigny" <ddecotig at google.com>
> Gesendet: Mittwoch, 26. Januar 2022 09:57:35
> Betreff: [PATCH RFC v1 1/1] mtd_blkdevs: avoid soft lockups with some mtd/spi devices

> From: David Decotigny <ddecotig at google.com>
> 
> With some spi devices, the heavy cpu usage due to polling the spi
> registers may lead to netdev timeouts, RCU complaints, etc. This can
> be acute in the absence of CONFIG_PREEMPT. This patch allows to give
> enough breathing room to avoid those false positives.

is the problem real or not? From your description it is not clear to me.
Please include lockdep splats and/or hung-task logs in the commit message.

I have no problem with adding a cond_resched() but first we need to
understand the issue a little better.

Thanks,
//richard



More information about the linux-mtd mailing list