Re: [PATCH linux-4.7-rc7] blk_stack_limits() setting discard_granularity
From: Jens Axboe <axboe@kernel.dk>
Date: 2016-07-21 18:56:04
From: Jens Axboe <axboe@kernel.dk>
Date: 2016-07-21 18:56:04
On 07/21/2016 12:09 PM, Florian-Ewald M�ller wrote:
blk_stack_limits() can set discard_granularity bigger than max_discard_sectors (in bytes). This makes blk_bio_discard_split() non-functional and can lead to data corruption.
Let's get rid of the unlikely(), this isn't a hot path. -- Jens Axboe