Re: [PATCH 9/9] sd_zbc: Do not write lock zones for reset

2017-04-23 Thread Damien Le Moal
Bart, On 4/22/17 02:15, Bart Van Assche wrote: > On Fri, 2017-04-21 at 18:16 +0900, damien.lem...@wdc.com wrote: >> @@ -250,11 +249,6 @@ int sd_zbc_setup_reset_cmnd(struct scsi_cmnd *cmd) >>/* Unaligned request */ >>return BLKPREP_KILL; >> >> - /* Do not

Re: [PATCH 9/9] sd_zbc: Do not write lock zones for reset

2017-04-21 Thread Bart Van Assche
On Fri, 2017-04-21 at 18:16 +0900, damien.lem...@wdc.com wrote: > @@ -250,11 +249,6 @@ int sd_zbc_setup_reset_cmnd(struct scsi_cmnd *cmd) > /* Unaligned request */ > return BLKPREP_KILL; > > - /* Do not allow concurrent reset and writes */ > - if

[PATCH 9/9] sd_zbc: Do not write lock zones for reset

2017-04-21 Thread damien . lemoal
From: Damien Le Moal Resetting a zone write pointer is equivalent to discarding sectors: after a reset, the zone sectors will contain zeros (or the format pattern). So there is no need for mutual exclusion between a zone reset and write. Similarly to discard, make it the