Make ZVOL writes in device mode support IO_SYNC flag.

MFC after:	1 month
This commit is contained in:
Alexander Motin 2014-09-09 11:29:55 +00:00
parent 5dbfa43f65
commit ee9534ed96

View File

@ -1633,7 +1633,7 @@ zvol_write(struct cdev *dev, struct uio *uio, int ioflag)
#ifdef sun
sync = !(zv->zv_flags & ZVOL_WCE) ||
#else
sync =
sync = (ioflag & IO_SYNC) ||
#endif
(zv->zv_objset->os_sync == ZFS_SYNC_ALWAYS);