io.c (ce2f51697bea03956c2ac1ccc17d81e170d68c3b) io.c (79a558664840adf502fe94907b0a680836e3e98e)
1/*
2 * Block layer I/O functions
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 3671 unchanged lines hidden (view full) ---

3680 bdrv_dec_in_flight(bs);
3681
3682 return ret;
3683}
3684
3685void bdrv_cancel_in_flight(BlockDriverState *bs)
3686{
3687 GLOBAL_STATE_CODE();
1/*
2 * Block layer I/O functions
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 3671 unchanged lines hidden (view full) ---

3680 bdrv_dec_in_flight(bs);
3681
3682 return ret;
3683}
3684
3685void bdrv_cancel_in_flight(BlockDriverState *bs)
3686{
3687 GLOBAL_STATE_CODE();
3688 GRAPH_RDLOCK_GUARD_MAINLOOP();
3689
3688 if (!bs || !bs->drv) {
3689 return;
3690 }
3691
3692 if (bs->drv->bdrv_cancel_in_flight) {
3693 bs->drv->bdrv_cancel_in_flight(bs);
3694 }
3695}

--- 75 unchanged lines hidden ---
3690 if (!bs || !bs->drv) {
3691 return;
3692 }
3693
3694 if (bs->drv->bdrv_cancel_in_flight) {
3695 bs->drv->bdrv_cancel_in_flight(bs);
3696 }
3697}

--- 75 unchanged lines hidden ---