Re: [RFC] how to fix is_local_disk()?

Andrew Morton (akpm@digeo.com)
Sun, 4 May 2003 00:30:21 -0700


Christoph Hellwig <hch@lst.de> wrote:
>
> In drivers/char/sysrq.c we have this nice piece of code:
>

Suggest you chainsaw the whole lot and simply do a wakeup_bdflush(0) from
interrupt context.

The only functional change I can see with this is that it could cause pdflush
to get stuck if there are dead NFS/SMBFS/etc mounts.

But if that happens, we need to fix it anyway. Those filesystems should
avoid getting stuck if called with writeback_control.sync_mode != WB_SYNC_ALL,
especially if current_is_pdflush() returns true.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/