linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Direct i/o changes break all non-GPL file systems
@ 2012-02-08  0:07 Anton Altaparmakov
  2012-02-08  0:15 ` Alan Cox
  0 siblings, 1 reply; 7+ messages in thread
From: Anton Altaparmakov @ 2012-02-08  0:07 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton, Christoph Hellwig
  Cc: Szabolcs Szakacsits, Janne Kalliomäki, LKML, linux-fsdevel

Hi Linus, Andrew, Christoph,

With kernel 3.1, Christoph removed i_alloc_sem and replaced it with calls (namely inode_dio_wait() and inode_dio_done()) which are EXPORT_SYMBOL_GPL() thus they cannot be used by non-GPL file systems and further inode_dio_wait() was pushed from notify_change() into the file system ->setattr() method but no non-GPL file system can make this call.

That means non-GPL file systems cannot exist any more unless they do not use any VFS functionality related to reading/writing as far as I can tell or at least as long as they want to implement direct i/o.

What are commercial file systems meant to do now?

For example Tuxera exFAT uses the generic write code which means that read/write use the generic direct_IO functions however Tuxera exFAT's setattr() method cannot call inode_dio_wait() and there are places where exfat_truncate() is called directly with i_alloc_sem held and now this needs to be replaced with calls to inode_dio_wait() but we cannot do that as the function is GPL only.

Previously when APIs have been changed that were accessible to non-GPL modules it was made sure those APIs remained that way but this does not appear to be the case here.

Do all non-GPL file systems now really have to re-implement the entire read-write code paths for themselves for the sake of two GPL only exports in the direct i/o code?  That seems a bit harsh!

Have I missed something?  If not would you accept a patch to change the two needed GPL only symbols into EXPORT_SYMBOL() ones?

Thanks a lot in advance!

Best regards,

	Anton
-- 
Anton Altaparmakov <anton at tuxera.com> (replace at with @)
Senior Kernel Developer, Tuxera Inc., http://www.tuxera.com/
Linux NTFS maintainer, http://www.linux-ntfs.org/


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-02-11 16:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-08  0:07 Direct i/o changes break all non-GPL file systems Anton Altaparmakov
2012-02-08  0:15 ` Alan Cox
2012-02-08  0:28   ` Anton Altaparmakov
2012-02-08  1:51     ` Andreas Dilger
2012-02-10 19:28       ` Linus Torvalds
2012-02-10 21:19         ` Al Viro
2012-02-11 16:18           ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).