Re: [PATCH 2/8] swap: lock i_mutex for swap_writepage direct_IO

From: Christoph Hellwig
Date: Wed Dec 17 2014 - 13:53:08 EST


On Wed, Dec 17, 2014 at 06:58:32AM -0800, Omar Sandoval wrote:
> See my previous message. If we use O_DIRECT on the original open, then
> filesystems that implement bmap but not direct_IO will no longer work.
> These are the ones that I found in my tree:

In the long run I don't think they are worth keeping. But to keep you
out of that discussion you can just try an open without O_DIRECT if the
open with the flag failed.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/