[PATCH V2 3/5] nvmet: ignore discard return value

Martin K. Petersen martin.petersen at oracle.com
Mon Nov 24 05:03:18 PST 2025


Chaitanya,

> __blkdev_issue_discard() always returns 0, making the error checking
> in nvmet_bdev_discard_range() dead code.
>
> Kill the function nvmet_bdev_discard_range() and call
> __blkdev_issue_discard() directly from nvmet_bdev_execute_discard(),
> since no error handling is needed anymore for __blkdev_issue_discard()
> call.

Looks good.

Reviewed-by: Martin K. Petersen <martin.petersen at oracle.com>

-- 
Martin K. Petersen



More information about the Linux-nvme mailing list