Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1555637

Re: [PATCH] block: fix blk_get_backing_dev_info() crash, use bdev->bd_queue

From Christoph Hellwig <hch@lst.de>
Newsgroups linux.kernel
Subject Re: [PATCH] block: fix blk_get_backing_dev_info() crash, use bdev->bd_queue
Date 2017-01-10 17:00 +0100
Message-ID <sY70b-3cI-5@gated-at.bofh.it> (permalink)
References <sWrFE-2MO-9@gated-at.bofh.it> <sWzWy-nl-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Jan 06, 2017 at 11:23:30AM +0100, Jan Kara wrote:
> So what I think needs to be done is that we make backing_dev_info
> independently allocated structure with different lifetime rules to gendisk
> or request_queue - definitely I want it to live as long as block device
> inode exists. However it needs more thought what the exact lifetime rules
> will be.

Yes, moving the backing dev out (or keeping the request_queue memoery alive)
is something we need to do.  And we need to look into the other half
of the backing_dev life time isssues - we need to make sure the name
and sysfs resources are released as soon as the devices goes away so that
we aren't going to run into reuse races.

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH] block: fix blk_get_backing_dev_info() crash,  use bdev->bd_queue Dan Williams <dan.j.williams@intel.com> - 2017-01-06 02:40 +0100
  Re: [PATCH] block: fix blk_get_backing_dev_info() crash, use  bdev->bd_queue Jan Kara <jack@suse.cz> - 2017-01-06 11:30 +0100
    Re: [PATCH] block: fix blk_get_backing_dev_info() crash, use bdev->bd_queue Dan Williams <dan.j.williams@intel.com> - 2017-01-06 18:50 +0100
      Re: [PATCH] block: fix blk_get_backing_dev_info() crash, use  bdev->bd_queue Jan Kara <jack@suse.cz> - 2017-01-08 20:50 +0100
        Re: [PATCH] block: fix blk_get_backing_dev_info() crash, use bdev->bd_queue Dan Williams <dan.j.williams@intel.com> - 2017-01-08 22:00 +0100
          Re: [PATCH] block: fix blk_get_backing_dev_info() crash, use bdev->bd_queue Dan Williams <dan.j.williams@intel.com> - 2017-01-10 03:10 +0100
    Re: [PATCH] block: fix blk_get_backing_dev_info() crash, use         bdev->bd_queue Christoph Hellwig <hch@lst.de> - 2017-01-10 17:00 +0100

csiph-web