]> www.infradead.org Git - users/hch/block.git/commit
ubd: untagle discard vs write zeroes not support handling
authorChristoph Hellwig <hch@lst.de>
Thu, 30 May 2024 06:36:27 +0000 (08:36 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 14 Jun 2024 05:14:43 +0000 (07:14 +0200)
commit1143485aa2e7040189b0d484947a12b81996355d
tree967c9ebefa320bc52f546c305c544b6633a9f57f
parent852934f280960e406a9166447254ad76a89f7bf3
ubd: untagle discard vs write zeroes not support handling

Discard and Write Zeroes are different operation and implemented
by different fallocate opcodes for ubd.  If one fails the other one
can work and vice versa.

Split the code to disable the operations in ubd_handler to only
disable the operation that actually failed.

Fixes: 50109b5a03b4 ("um: Add support for DISCARD in the UBD Driver")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
arch/um/drivers/ubd_kern.c