dm: fix comment above dm_accept_partial_bio
authorNeilBrown <neilb@suse.com>
Tue, 21 Nov 2017 13:44:35 +0000 (08:44 -0500)
committerMike Snitzer <snitzer@redhat.com>
Wed, 13 Dec 2017 17:15:54 +0000 (12:15 -0500)
Clarify that dm_accept_partial_bio isn't allowed for REQ_OP_ZONE_RESET
bios.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c

index de17b71..fb9e6d8 100644 (file)
@@ -997,7 +997,7 @@ static size_t dm_dax_copy_from_iter(struct dax_device *dax_dev, pgoff_t pgoff,
 
 /*
  * A target may call dm_accept_partial_bio only from the map routine.  It is
- * allowed for all bio types except REQ_PREFLUSH.
+ * allowed for all bio types except REQ_PREFLUSH and REQ_OP_ZONE_RESET.
  *
  * dm_accept_partial_bio informs the dm that the target only wants to process
  * additional n_sectors sectors of the bio and the rest of the data should be