.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * faulty.c : Multiple Devices driver for Linux |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2004 Neil Brown |
---|
5 | 6 | * |
---|
6 | 7 | * fautly-device-simulator personality for md |
---|
7 | | - * |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License as published by |
---|
11 | | - * the Free Software Foundation; either version 2, or (at your option) |
---|
12 | | - * any later version. |
---|
13 | | - * |
---|
14 | | - * You should have received a copy of the GNU General Public License |
---|
15 | | - * (for example /usr/src/linux/COPYING); if not, write to the Free |
---|
16 | | - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
17 | 8 | */ |
---|
18 | 9 | |
---|
19 | 10 | |
---|
.. | .. |
---|
178 | 169 | if (bio_data_dir(bio) == WRITE) { |
---|
179 | 170 | /* write request */ |
---|
180 | 171 | if (atomic_read(&conf->counters[WriteAll])) { |
---|
181 | | - /* special case - don't decrement, don't generic_make_request, |
---|
| 172 | + /* special case - don't decrement, don't submit_bio_noacct, |
---|
182 | 173 | * just fail immediately |
---|
183 | 174 | */ |
---|
184 | 175 | bio_io_error(bio); |
---|
.. | .. |
---|
223 | 214 | } else |
---|
224 | 215 | bio_set_dev(bio, conf->rdev->bdev); |
---|
225 | 216 | |
---|
226 | | - generic_make_request(bio); |
---|
| 217 | + submit_bio_noacct(bio); |
---|
227 | 218 | return true; |
---|
228 | 219 | } |
---|
229 | 220 | |
---|