All of lore.kernel.org
 help / color / mirror / Atom feed
* BLKZEROOUT on dm devices
@ 2013-04-30  4:07 Bharata B Rao
  2013-04-30 16:32 ` [PATCH] dm table: fix logic bug in dm_table_supports_write_same [was: Re: BLKZEROOUT on dm devices] Mike Snitzer
  0 siblings, 1 reply; 5+ messages in thread
From: Bharata B Rao @ 2013-04-30  4:07 UTC (permalink / raw)
  To: dm-devel

Hi,

Is BLKZEROOUT ioctl supposed to work on dm devices ? When I try this
ioctl on an LV that sits on a WRITE SAME capable SCSI device, I see
that conventional zeroing is done since the WRITE SAME support isn't
advertised by the dm device.

# lsblk
NAME                             MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                                8:0    0    50G  0 disk
└─mpathb (dm-12)                 252:12   0    50G  0 mpath
  └─ws_vg-lvol0 (dm-11)          252:11   0     1G  0 lvm
sde                                8:64   0    50G  0 disk
└─mpathb (dm-12)                 252:12   0    50G  0 mpath
  └─ws_vg-lvol0 (dm-11)          252:11   0     1G  0 lvm

# cat /sys/block/sda/queue/write_same_max_bytes
268435456
# cat /sys/block/dm-12/queue/write_same_max_bytes
0
# cat /sys/block/dm-11/queue/write_same_max_bytes
0

[root@llmvm02 ~]# cat /sys/dev/block/8\:0/queue/write_same_max_bytes
268435456
[root@llmvm02 ~]# cat /sys/dev/block/252\:12/queue/write_same_max_bytes
0
[root@llmvm02 ~]# cat /sys/dev/block/252\:11/queue/write_same_max_bytes
0

>From commit d54eaa5a0fde0a202e4e91f200f818edcef15bee, I gather that
WRITE SAME is advertised by a dm device if all of its target and
underlying devices support WRITE SAME. Also as per
4f0b70b0479101522b8645ddc1f5ee7137821db3, WRITE SAME is supported for
linear dm devices. Both of these seem to be true in my case, but still
BLKZEROOUT ioctl resorts to conventional zeroing. What am I missing
here ?

Regards,
Bharata.
--
http://raobharata.wordpress.com/

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-05-01 14:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-30  4:07 BLKZEROOUT on dm devices Bharata B Rao
2013-04-30 16:32 ` [PATCH] dm table: fix logic bug in dm_table_supports_write_same [was: Re: BLKZEROOUT on dm devices] Mike Snitzer
2013-05-01  6:58   ` Bharata B Rao
2013-05-01 13:29     ` [PATCH] dm mpath: enable WRITE SAME support Mike Snitzer
2013-05-01 14:22       ` Bharata B Rao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.