lkml.org 
[lkml]   [2021]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH V3 1/1] block: reject I/O for same fd if block size changed
On Mon, Jan 04, 2021 at 06:11:08PM +0100, Christoph Hellwig wrote:
> On Mon, Jan 04, 2021 at 10:06:59PM +0900, Minwoo Im wrote:
> > + if (q->backing_dev_info && q->backing_dev_info->owner &&
> > + limits->logical_block_size != size) {
> > + bdev = blkdev_get_no_open(q->backing_dev_info->owner->devt);
> > + bdev->bd_disk->flags |= GENHD_FL_BLOCK_SIZE_CHANGED;
> > + blkdev_put_no_open(bdev);
> > + }
>
> We really need the backpointer from the queue to the gendisk I've wanted
> to add for a while. Can we at least restrict this to a live gendisk?

Alternatively we could make this request_queue QUEUE* flag for now.

\
 
 \ /
  Last update: 2021-01-04 18:14    [W:0.033 / U:0.824 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site