Skip to content

Commit bc05891

Browse files
committed
remove IO stack limits to avoid bio split
Signed-off-by: Yong Yang <yangoliver@gmail.com>
1 parent d431737 commit bc05891

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/block/sampleblk/day2/sample_blk.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ static int sampleblk_alloc(int minor)
155155
goto fail_data;
156156
}
157157

158+
/* Remove IO stack limits to avoid bio split */
159+
blk_set_stacking_limits(&sampleblk_dev->queue->limits);
160+
158161
disk = alloc_disk(minor);
159162
if (!disk) {
160163
rv = -ENOMEM;

0 commit comments

Comments
 (0)