lkml.org 
[lkml]   [2018]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V3] block: fix the DISCARD request merge
> -	/*
> - * not contiguous
> - */
> - if (blk_rq_pos(req) + blk_rq_sectors(req) != blk_rq_pos(next))
> - return NULL;
> -

As suggested previously I think we want something like blk_try_merge
and its return values here. Maybe a blk_try_req_merge that takes
requests instead of bios.

\
 
 \ /
  Last update: 2018-10-24 13:24    [W:0.052 / U:22.772 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site