[PATCH] nvme: fix return type of nvme_poll()

Christoph Hellwig hch at lst.de
Sun Dec 8 23:58:36 PST 2024


On Sun, Dec 08, 2024 at 06:24:30AM +0000, Yongsoo Joo wrote:
> I agree that all the "current" interested callers seem to expect 
> boolean-like return values from nvme_poll(). However, the return 
> type of both nvme_poll() and nvme_poll_cq() is int, and 
> nvme_poll_cq() actually returns the number of processed CQEs.

Maybe add a patch to switch the poll method to return bool instead?




More information about the Linux-nvme mailing list