Skip to Main Content
IBM System Storage Ideas Portal


This portal is to open public enhancement requests against IBM System Storage products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Submitted
Created by Guest
Created on Jul 31, 2026

Implement RWF_SYNC/RWF_DSYNC flag support in SCALE's pwritev2 syscall handler.

Recommendation for implementation (IBM should implement):

1. Add IOCB_SYNC/IOCB_DSYNC Handling in gpfs_f_write_iter()

int gpfs_f_write_iter(struct kiocb *iocb, struct iov_iter *iter) {

ssize_t ret;

// Current code: just writes, ignores flags 

ret = generic_file_write_iter(iocb, iter);

// REQUIRED for RWF_SYNC support: 

if (ret > 0 && (iocb->ki_flags & (IOCB_SYNC | IOCB_DSYNC)))  {

int sync_type = (iocb->ki_flags & IOCB_DSYNC) ? GPFS_DATASYNC : GPFS_FULLSYNC;

// Flush buffered writes and wait for disk

gpfs_fsync_range(iocb->ki_filp, iocb->ki_pos - ret, iocb->ki_pos, sync_type);

}

return ret;

}

2. Ensure NFS Server Integration

// In GPFS NFS export server code:

// When handling NFSv3 WRITE RPC with stable = FILE_SYNC:

if (write_stable == FILE_SYNC) {

// Must set flags that gpfs_f_write_iter will see

iocb->ki_flags |= IOCB_SYNC | IOCB_DSYNC;

// Now when NFS server calls write_iter, GPFS will sync

}

3. Test Coverage (From Ticket TS022243547 writepause Test)

// Test that should pass:

int fd = open("file", O_RDWR); // NO O_SYNC!

// Write via pwritev2 with RWF_SYNC

struct iovec iov = {buffer, size};

pwritev2(fd, &iov, 1, 0, RWF_SYNC);

// Simulate sudden power loss

// (In real test: echo b > /proc/sysrq-trigger)

// After reboot:

// Data MUST be present on disk

// Test currently fails on GPFS, passes on XFS

 

Why:

  • Standard Linux interface (Linux 4.6+, 2016)
  • Required for NFS FILE_SYNC protocol compliance
  • Prevents data loss in durability-critical workloads
  • Matches industry-standard filesystem behavior (XFS, ext4, Btrfs, etc.)

Impact if not fixed:

  • Data loss risk during failures
  • NFS clients cannot rely on FILE_SYNC durability
  • Breaks distributed consensus, transaction journals, and database WAL guarantees
  • Creates data inconsistency across replicated systems

Test case: The writepause program from the ticket (TS022243547) demonstrates the bug and validates the fix.

 

Idea priority Urgent