File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,7 @@ static void raid_end_bio_io(struct r1bio *r1_bio)
311
311
{
312
312
struct bio * bio = r1_bio -> master_bio ;
313
313
struct r1conf * conf = r1_bio -> mddev -> private ;
314
+ sector_t sector = r1_bio -> sector ;
314
315
315
316
/* if nobody has done the final endio yet, do it now */
316
317
if (!test_and_set_bit (R1BIO_Returned , & r1_bio -> state )) {
@@ -321,13 +322,13 @@ static void raid_end_bio_io(struct r1bio *r1_bio)
321
322
322
323
call_bio_endio (r1_bio );
323
324
}
325
+
326
+ free_r1bio (r1_bio );
324
327
/*
325
328
* Wake up any possible resync thread that waits for the device
326
329
* to go idle. All I/Os, even write-behind writes, are done.
327
330
*/
328
- allow_barrier (conf , r1_bio -> sector );
329
-
330
- free_r1bio (r1_bio );
331
+ allow_barrier (conf , sector );
331
332
}
332
333
333
334
/*
You can’t perform that action at this time.
0 commit comments