Prev: writeback: do not lose default bdi wake-ups
Next: writeback: clean-up the warning about non-registered bdi
From: Christoph Hellwig on 18 Jul 2010 03:00 What about never removing a bdi from bdi_list? If we have the correct checks for dirty_io and the task there's no need to ever remove a life bdi from the list. Just add it in bdi_register and remove it in bdi_unregister. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Artem Bityutskiy on 20 Jul 2010 07:20 On Sun, 2010-07-18 at 02:58 -0400, Christoph Hellwig wrote: > What about never removing a bdi from bdi_list? If we have the > correct checks for dirty_io and the task there's no need to > ever remove a life bdi from the list. Just add it in bdi_register > and remove it in bdi_unregister. Good idea, thanks, indeed I do not see why we need removing it. -- Best Regards, Artem Bityutskiy (Артём Битюцкий) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Artem Bityutskiy on 20 Jul 2010 07:40
On Sun, 2010-07-18 at 02:58 -0400, Christoph Hellwig wrote: > What about never removing a bdi from bdi_list? If we have the > correct checks for dirty_io and the task there's no need to > ever remove a life bdi from the list. Just add it in bdi_register > and remove it in bdi_unregister. But I think it will be less error-prone and nicer to still have this patch, then move the killing logic from bdi threads to the forker task, and then, as a separate patch on top of that, get rid of this removing bdi from bdi_list part. I mean, this way the patch series will be more logical and finer grained and easier to review. -- Best Regards, Artem Bityutskiy (Артём Битюцкий) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |