[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] [PATCH 8/17] bottom-layer barrier support

On Mon, 27 Apr 2009, Alasdair G Kergon wrote:

> On Mon, Apr 20, 2009 at 03:58:20AM -0400, Mikulas Patocka wrote:
> > dm-flush-make-empty-barrier.patch
> > Modify dm_flush so that is passes empty barrier flushes to the targets.
> > +	md->barrier_bio.bi_bdev = md->bdev;
> There is no md->bdev in my tree - have I missed a dependency here?
> Alasdair

That is from two patches:

They are old and fix memory-allocation-while-suspended violation.

Do you want to accept them?

There should be bdev value of the md device in bi_bdev, most targets don't 
care about it, but for correctness, we should supply a correct value.

If you don't want to accept the correct patches, we must make up some 
dummy value for bi_bdev and review targets that they don't care about the 
value (I consider it somehow hacky to place dummy values to bio fields for 
targets, and I'd rather put the "keep-bdev-always-referenced" patch in).

Another possibility would be to get bdev from submitted barrier request.

Which of these ways do you want to go?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]