]> www.infradead.org Git - users/hch/block.git/commit
sd: add a sd_disable_write_same helper
authorChristoph Hellwig <hch@lst.de>
Tue, 21 May 2024 22:47:55 +0000 (15:47 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 31 May 2024 07:29:22 +0000 (09:29 +0200)
commit84935658c6e4eeca6e22cbd92cbb5ee3b87000c5
tree1cc7fc95ffbdb07266f28a81754ba4186cdc3ac5
parenta07cc657bd6a4577d0b92fc6805838876e94a873
sd: add a sd_disable_write_same helper

Add helper to disable WRITE SAME when it is not supported and use it
instead of sd_config_write_same in the I/O completion handler.  This
avoids touching more fields than required in the I/O completion handler
and  prepares for converting sd to use the atomic queue limits API.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
drivers/scsi/sd.c