lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C289A5E.2060007@kernel.dk>
Date:	Mon, 28 Jun 2010 14:49:34 +0200
From:	Jens Axboe <axboe@...nel.dk>
To:	Christoph Hellwig <hch@....de>
CC:	Mike Snitzer <snitzer@...hat.com>, dm-devel@...hat.com,
	James.Bottomley@...e.de, linux-kernel@...r.kernel.org,
	martin.petersen@...cle.com, akpm@...ux-foundation.org
Subject: Re: [PATCH 2/2] block: defer the use of inline biovecs for discard
 requests

On 2010-06-28 14:44, Christoph Hellwig wrote:
> On Mon, Jun 28, 2010 at 02:41:30PM +0200, Jens Axboe wrote:
>> The horrible part is working around that issue by fiddling with the
>> assignment of the internal vec. THAT looks like a horrible solution
>> to that problem.
>>
>> How about just adding a check to bio_has_data() for non-zero
>> bio->bi_vcnt?
> 
> The question is how a discard request from the block layer should look
> like.  With Mike's patch we have the same situation as for a barrier
> request:  absolutely no data transferred and no indicator of it.  IHMO
> that's much better than any partially constructed request.  And yes,
> that means enabling the payload later in the driver.

With a barrier, it's more clear I think - if it carries data, then
you account that. If it's an empty barrier, then there's nothing to
account. There will be an impact on the io stream, but that is
indicated in blktrace for instance.

> The other option would be to not reuse the request at all and just
> allocate a new request and use that from sd_prep_fn.  That's what
> I tried to implement first, but I couldn't get it to work.  Given
> all the issue we have with the current approach I'm almost tempted
> to try that again.

That sounds way cleaner...

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ