lkml.org 
[lkml]   [2020]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC v2 4/5] mm/swapfile: refcount block and queue before using blkcg_schedule_throttle()
From
Date
On 2020-04-09 14:45, Luis Chamberlain wrote:
> if (si->bdev) {
> + bdev = bdgrab(si->bdev);
> + if (!bdev)
> + continue;
> + /*
> + * By adding our own bdgrab() we ensure the queue
> + * sticks around until disk_release(), and so we ensure
> + * our release of the request_queue does not happen in
> + * atomic context.
> + */
> blkcg_schedule_throttle(bdev_get_queue(si->bdev),
> true);

How about changing the si->bdev argument of blkcg_schedule_throttle()
into bdev?

Thanks,

Bart.

\
 
 \ /
  Last update: 2020-04-10 05:03    [W:0.152 / U:0.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site