File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
drivers/block/xen-blkback Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -1327,9 +1327,6 @@ static int dispatch_rw_block_io(struct xen_blkif_ring *ring,
1327
1327
seg [i ].nsec << 9 ,
1328
1328
seg [i ].offset ) == 0 )) {
1329
1329
bio = bio_alloc (GFP_KERNEL , bio_max_segs (nseg - i ));
1330
- if (unlikely (bio == NULL ))
1331
- goto fail_put_bio ;
1332
-
1333
1330
biolist [nbio ++ ] = bio ;
1334
1331
bio_set_dev (bio , preq .bdev );
1335
1332
bio -> bi_private = pending_req ;
@@ -1346,9 +1343,6 @@ static int dispatch_rw_block_io(struct xen_blkif_ring *ring,
1346
1343
BUG_ON (operation_flags != REQ_PREFLUSH );
1347
1344
1348
1345
bio = bio_alloc (GFP_KERNEL , 0 );
1349
- if (unlikely (bio == NULL ))
1350
- goto fail_put_bio ;
1351
-
1352
1346
biolist [nbio ++ ] = bio ;
1353
1347
bio_set_dev (bio , preq .bdev );
1354
1348
bio -> bi_private = pending_req ;
@@ -1381,14 +1375,6 @@ static int dispatch_rw_block_io(struct xen_blkif_ring *ring,
1381
1375
free_req (ring , pending_req );
1382
1376
msleep (1 ); /* back off a bit */
1383
1377
return - EIO ;
1384
-
1385
- fail_put_bio :
1386
- for (i = 0 ; i < nbio ; i ++ )
1387
- bio_put (biolist [i ]);
1388
- atomic_set (& pending_req -> pendcnt , 1 );
1389
- __end_block_io_op (pending_req , BLK_STS_RESOURCE );
1390
- msleep (1 ); /* back off a bit */
1391
- return - EIO ;
1392
1378
}
1393
1379
1394
1380
You can’t perform that action at this time.
0 commit comments