]> www.infradead.org Git - users/hch/block.git/commit
nvme: set max_hw_sectors unconditionally
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Feb 2024 17:52:33 +0000 (12:52 -0500)
committerChristoph Hellwig <hch@lst.de>
Thu, 29 Feb 2024 15:00:27 +0000 (07:00 -0800)
commit93a868ea72e152e1568299006ec3e95402d97c8f
tree936a6cd2e630ed5c7c3645c57c61f8d14ba9e64b
parent7e49df1254314bc5eba69a3ce39ec46acf01194e
nvme: set max_hw_sectors unconditionally

All transports set a max_hw_sectors value in the nvme_ctrl, so make
the code using it unconditional and clean it up using a little helper.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
drivers/nvme/host/core.c