]> 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, 14 Jun 2024 05:20:07 +0000 (07:20 +0200)
commit99835186f9d9c57724cbe2b780ffe464bd72c16a
tree308cf18f2f807e487e1f3fd003fa4dd50164c7e9
parentace0ee8462c63eac44d4f67e73a7a1bc56a42330
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>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c