Re: [PATCH v5 7/7] fs: add a flag for per-operation O_DSYNC semantics

2014-11-10 Thread Sage Weil
On Wed, 5 Nov 2014, Milosz Tanski wrote: > From: Christoph Hellwig > > With the new read/write with flags syscalls we can support a flag > to enable O_DSYNC semantics on a per-operation basis. This ?s > useful to implement protocols like SMB, NFS or SCSI that have such > per-operation flags. >

Re: [PATCH v5 7/7] fs: add a flag for per-operation O_DSYNC semantics

2014-11-06 Thread Jeff Moyer
Milosz Tanski writes: > - if (type == READ && (flags & RWF_NONBLOCK)) > - return -EAGAIN; > + if (type == READ) { > + if (flags & RWF_NONBLOCK) > + return -EAGAIN; > + } else { > +