hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/md/md-faulty.c
....@@ -1,19 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * faulty.c : Multiple Devices driver for Linux
34 *
45 * Copyright (C) 2004 Neil Brown
56 *
67 * 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.
178 */
189
1910
....@@ -178,7 +169,7 @@
178169 if (bio_data_dir(bio) == WRITE) {
179170 /* write request */
180171 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,
182173 * just fail immediately
183174 */
184175 bio_io_error(bio);
....@@ -223,7 +214,7 @@
223214 } else
224215 bio_set_dev(bio, conf->rdev->bdev);
225216
226
- generic_make_request(bio);
217
+ submit_bio_noacct(bio);
227218 return true;
228219 }
229220