]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
xen/blkfront: When purging persistent grants, keep them in the buffer
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Sat, 22 Sep 2018 19:55:49 +0000 (15:55 -0400)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Sep 2018 14:26:38 +0000 (08:26 -0600)
commitf151ba989d149bbdfc90e5405724bbea094f9b17
treee87c470b310a6b24303455712a5bf798282d6c13
parent854f31ccdd7964c9c2e68da234a3a8aedb51cf6b
xen/blkfront: When purging persistent grants, keep them in the buffer

Commit a46b53672b2c ("xen/blkfront: cleanup stale persistent grants")
added support for purging persistent grants when they are not in use. As
part of the purge, the grants were removed from the grant buffer, This
eventually causes the buffer to become empty, with BUG_ON triggered in
get_free_grant(). This can be observed even on an idle system, within
20-30 minutes.

We should keep the grants in the buffer when purging, and only free the
grant ref.

Fixes: a46b53672b2c ("xen/blkfront: cleanup stale persistent grants")
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/xen-blkfront.c