File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5869,10 +5869,6 @@ int md_run(struct mddev *mddev)
5869
5869
nowait = nowait && blk_queue_nowait (bdev_get_queue (rdev -> bdev ));
5870
5870
}
5871
5871
5872
- /* Set the NOWAIT flags if all underlying devices support it */
5873
- if (nowait )
5874
- blk_queue_flag_set (QUEUE_FLAG_NOWAIT , mddev -> queue );
5875
-
5876
5872
if (!bioset_initialized (& mddev -> bio_set )) {
5877
5873
err = bioset_init (& mddev -> bio_set , BIO_POOL_SIZE , 0 , BIOSET_NEED_BVECS );
5878
5874
if (err )
@@ -6010,6 +6006,10 @@ int md_run(struct mddev *mddev)
6010
6006
else
6011
6007
blk_queue_flag_clear (QUEUE_FLAG_NONROT , mddev -> queue );
6012
6008
blk_queue_flag_set (QUEUE_FLAG_IO_STAT , mddev -> queue );
6009
+
6010
+ /* Set the NOWAIT flags if all underlying devices support it */
6011
+ if (nowait )
6012
+ blk_queue_flag_set (QUEUE_FLAG_NOWAIT , mddev -> queue );
6013
6013
}
6014
6014
if (pers -> sync_request ) {
6015
6015
if (mddev -> kobj .sd &&
You can’t perform that action at this time.
0 commit comments