It sounds like you don't want to support traditional discard at all, but only WRITE ZEROES. So in many ways this series is the right way forward. It would be nice if we could do a full blown REQ_OP_WRITE_ZEROES for dm_think that zeroes out partial blocks, similar to what hardware that implements WRITE SAME of zeroes or WRITE ZEROES would do. I'll see if I could include that in my series.
- Re: [PATCH 03/23] sd: implement REQ_OP_WRI... Bart Van Assche
- Re: [PATCH 03/23] sd: implement REQ_OP... Paolo Bonzini
- Re: [PATCH 03/23] sd: implement REQ_OP_WRITE_Z... Martin K. Petersen
- [PATCH 05/23] dm: support REQ_OP_WRITE_ZEROES Christoph Hellwig
- [PATCH 10/23] block: add a new BLKDEV_ZERO_NOFALLBACK f... Christoph Hellwig
- [PATCH 07/23] block: stop using blkdev_issue_write_same... Christoph Hellwig
- Re: RFC: always use REQ_OP_WRITE_ZEROES for zeroing off... Lars Ellenberg
- Re: RFC: always use REQ_OP_WRITE_ZEROES for zeroin... Mike Snitzer
- Re: RFC: always use REQ_OP_WRITE_ZEROES for ze... Lars Ellenberg
- Re: RFC: always use REQ_OP_WRITE_ZEROES fo... Paolo Bonzini
- Re: RFC: always use REQ_OP_WRITE_ZEROES for zeroin... Christoph Hellwig
- Re: RFC: always use REQ_OP_WRITE_ZEROES for ze... Mike Snitzer
- Re: RFC: always use REQ_OP_WRITE_ZEROES fo... Christoph Hellwig
- Re: [Drbd-dev] RFC: always use REQ_OP_WRIT... Bart Van Assche
- Re: RFC: always use REQ_OP_WRITE_ZEROES for zeroin... Christoph Hellwig
- Re: RFC: always use REQ_OP_WRITE_ZEROES for zeroing off... Mike Snitzer
- Re: RFC: always use REQ_OP_WRITE_ZEROES for zeroin... Martin K. Petersen
- Re: RFC: always use REQ_OP_WRITE_ZEROES for ze... Mike Snitzer
