Displaying 1 result from an estimated 1 matches for "gfp_nofail".
Did you mean:
__gfp_nofail
2019 Oct 03
0
virtq questions
...probably is to query queue size in the beginning
and make sure number of pages attached to a request are less then
that.
>
> So my proposed solution is to turn fsvq->lock into a mutex; call
> virtqueue_add_sgs() with whatever gfp flags are used to allocate the
> request and add __GFP_NOFAIL for good measure. This means that the
> request is guaranteed to use a single slot IF "indirect_desc" is on.
> And there should be some way to verify from the virtiofs code that
> this feature is indeed on, otherwise things can get messy (as noted
> above).
Sounds reasonable...