mirror of
https://github.com/torvalds/linux
synced 2024-11-02 18:48:59 +00:00
block: extend bio-cache for non-polled requests
This patch modifies the present check, so that bio-cache is not limited to iopoll. Signed-off-by: Anuj Gupta <anuj20.g@samsung.com> Signed-off-by: Kanchan Joshi <joshi.k@samsung.com> Link: https://lore.kernel.org/r/20230117120638.72254-3-anuj20.g@samsung.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
888545cb43
commit
7e2e355dd9
1 changed files with 2 additions and 4 deletions
|
@ -246,10 +246,8 @@ static struct bio *blk_rq_map_bio_alloc(struct request *rq,
|
|||
{
|
||||
struct bio *bio;
|
||||
|
||||
if (rq->cmd_flags & REQ_POLLED) {
|
||||
blk_opf_t opf = rq->cmd_flags | REQ_ALLOC_CACHE;
|
||||
|
||||
bio = bio_alloc_bioset(NULL, nr_vecs, opf, gfp_mask,
|
||||
if (rq->cmd_flags & REQ_ALLOC_CACHE) {
|
||||
bio = bio_alloc_bioset(NULL, nr_vecs, rq->cmd_flags, gfp_mask,
|
||||
&fs_bio_set);
|
||||
if (!bio)
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue