Title: [5841] trunk/mm/backing-dev.c: Fix bug [#4463] - Kill tons of warning messages
- Revision
- 5841
- Author
- cooloney
- Date
- 2008-12-09 03:14:57 -0600 (Tue, 09 Dec 2008)
Log Message
Fix bug [#4463] - Kill tons of warning messages
Modified Paths
Diff
Modified: trunk/mm/backing-dev.c (5840 => 5841)
--- trunk/mm/backing-dev.c 2008-12-09 08:12:40 UTC (rev 5840)
+++ trunk/mm/backing-dev.c 2008-12-09 09:14:57 UTC (rev 5841)
@@ -176,7 +176,16 @@
int ret = 0;
struct device *dev;
- if (WARN_ON(bdi->dev))
+ /* Register sysfs bdi device only once per queue
+ *
+ * This prevents the creation of multiple bdi interfaces per queue,
+ * and the bdi device will carry the dev_t name of the block device
+ * which is the first one registered, of the pool of devices using
+ * the same queue.
+ *
+ * add WARN_ON to misbehaving drivers
+ */
+ if (bdi->dev)
goto exit;
va_start(args, fmt);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits