Skip to content

Commit

Permalink
Handle IO requests better after ZVOL dismount
Browse files Browse the repository at this point in the history
Signed-off-by: Jorgen Lundman <[email protected]>
  • Loading branch information
lundman committed Nov 4, 2023
1 parent 1ecc0ca commit bc14612
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/os/windows/zfs/zvol_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ zvol_os_write_zv(zvol_state_t *zv, zfs_uio_t *uio, int flags)
if (zv == NULL)
return (ENXIO);

if (zv->zv_objset == NULL)
return (ENXIO);

/* Some requests are just for flush and nothing else. */
if (zfs_uio_resid(uio) == 0)
return (0);
Expand Down

0 comments on commit bc14612

Please sign in to comment.