[f2fs-dev] [PATCH V3 6/6] xfs: ignore discard return value

Christoph Hellwig hch at lst.de
Wed Nov 26 02:33:23 PST 2025


On Wed, Nov 26, 2025 at 10:37:10AM +0800, Yongpeng Yang wrote:
>>   				xfs_gbno_to_daddr(xg, busyp->bno),
>>   				XFS_FSB_TO_BB(mp, busyp->length),
>>   				GFP_KERNEL, &bio);
>
> If blk_alloc_discard_bio() fails to allocate a bio inside
> __blkdev_issue_discard(),

It won't, because mempool allocations will not fail if they can
sleep as they can here.




More information about the Linux-nvme mailing list