block: only honor SG gap prevention for merges that contain data
authorJens Axboe <axboe@fb.com>
Fri, 29 May 2015 19:10:23 +0000 (13:10 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 29 May 2015 19:10:23 +0000 (13:10 -0600)
We can safely merge anything that wont generate an SG list entry,
so if the bio is data-less (discard), don't look at potential
SG gaps.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-merge.c

Simple merge