lkml.org 
[lkml]   [2021]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] blk-mq-sched: Fix blk_mq_sched_alloc_tags() error handling
From
Date
On 7/27/21 3:32 AM, John Garry wrote:
> If the blk_mq_sched_alloc_tags() -> blk_mq_alloc_rqs() call fails, then we
> call blk_mq_sched_free_tags() -> blk_mq_free_rqs().
>
> It is incorrect to do so, as any rqs would have already been freed in the
> blk_mq_alloc_rqs() call.
>
> Fix by calling blk_mq_free_rq_map() only directly.

Applied, thanks.

--
Jens Axboe

\
 
 \ /
  Last update: 2021-07-28 00:45    [W:0.078 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site