Skip to content

Instantly share code, notes, and snippets.

@epickrram
Created December 9, 2015 12:09
Show Gist options
  • Save epickrram/922387b56cec6a77f291 to your computer and use it in GitHub Desktop.
Save epickrram/922387b56cec6a77f291 to your computer and use it in GitHub Desktop.
xfs_write_lock
xfs_file_buffered_aio_write(
struct kiocb *iocb,
struct iov_iter *from)
{
...
int iolock = XFS_IOLOCK_EXCL;
...
xfs_rw_ilock(ip, iolock);
...
ret = generic_perform_write(file, from, pos);
...
xfs_rw_iunlock(ip, iolock);
return ret;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment