Re: [PATCH 1/4] block: break discard submissions into the user defined size

2018-05-08 Thread Jens Axboe
On 5/8/18 2:43 PM, Omar Sandoval wrote: > On Mon, May 07, 2018 at 10:13:32AM -0600, Jens Axboe wrote: >> Don't build discards bigger than what the user asked for, if the >> user decided to limit the size by writing to 'discard_max_bytes'. >> >> Signed-off-by: Jens Axboe >> --- >>

Re: [PATCH 1/4] block: break discard submissions into the user defined size

2018-05-08 Thread Omar Sandoval
On Mon, May 07, 2018 at 10:13:32AM -0600, Jens Axboe wrote: > Don't build discards bigger than what the user asked for, if the > user decided to limit the size by writing to 'discard_max_bytes'. > > Signed-off-by: Jens Axboe > --- > block/blk-lib.c | 7 --- > 1 file

Re: [PATCH 1/4] block: break discard submissions into the user defined size

2018-05-07 Thread Darrick J. Wong
On Mon, May 07, 2018 at 10:13:32AM -0600, Jens Axboe wrote: > Don't build discards bigger than what the user asked for, if the > user decided to limit the size by writing to 'discard_max_bytes'. > > Signed-off-by: Jens Axboe Seems fine to me, Reviewed-by: Darrick J. Wong

[PATCH 1/4] block: break discard submissions into the user defined size

2018-05-07 Thread Jens Axboe
Don't build discards bigger than what the user asked for, if the user decided to limit the size by writing to 'discard_max_bytes'. Signed-off-by: Jens Axboe --- block/blk-lib.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/block/blk-lib.c