NVIDIA / gds-nvidia-fs

NVIDIA GPUDirect Storage Driver
Other
196 stars 31 forks source link

Use wrapper functions when modifying vma->vm_flags (Linux kernel > 6.3) #32

Closed bfstree closed 6 months ago

bfstree commented 10 months ago

nvidia-fs build fails on Linux kernel 6.3.x.

gds-nvidia-fs/src/nvfs-mmap.c:667:23: error: assignment of read-only member ‘vm_flags’
  667 |         vma->vm_flags |= VM_IO | VM_MIXEDMAP | VM_DONTEXPAND | VM_DONTDUMP | VM_DONTCOPY;
      |                       ^~

The issue is documented here: https://lore.kernel.org/lkml/ZA7x9y60sfGOanHl@kroah.com/T/ and here: https://lore.kernel.org/lkml/20230126193752.297968-1-surenb@google.com/

The source should use vm_flags_set(), etc. to set the vm_flags.

bfstree commented 10 months ago

This also happens with the latest nvidia-fs (v2.18.3) included in CUDA 12.3.1

KiranModukuri commented 6 months ago

This issue is addressed in 2.19.6 release