Skip to content

Commit 9fb878e

Browse files
committed
linux/zvol_os.c: cleanup limits for non-blk mq case
Rob Noris suggested that we could clean up redundant limits for the case of non-blk mq scenario. Signed-off-by: Ameer Hamza <[email protected]>
1 parent 06b587f commit 9fb878e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

module/os/linux/zfs/zvol_os.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,6 @@ zvol_alloc_non_blk_mq(struct zvol_state_os *zso, zvol_queue_limits_t *limits)
12521252

12531253
zso->zvo_disk->minors = ZVOL_MINORS;
12541254
zso->zvo_queue = zso->zvo_disk->queue;
1255-
zvol_queue_limits_apply(limits, zso->zvo_queue);
12561255
#elif defined(HAVE_BLK_ALLOC_DISK_2ARG)
12571256
struct queue_limits qlimits;
12581257
zvol_queue_limits_convert(limits, &qlimits);
@@ -1266,10 +1265,6 @@ zvol_alloc_non_blk_mq(struct zvol_state_os *zso, zvol_queue_limits_t *limits)
12661265
zso->zvo_disk->minors = ZVOL_MINORS;
12671266
zso->zvo_queue = zso->zvo_disk->queue;
12681267

1269-
#ifndef HAVE_BLKDEV_QUEUE_LIMITS_FEATURES
1270-
blk_queue_set_write_cache(zso->zvo_queue, B_TRUE);
1271-
#endif
1272-
12731268
#else
12741269
zso->zvo_queue = blk_alloc_queue(NUMA_NO_NODE);
12751270
if (zso->zvo_queue == NULL)

0 commit comments

Comments
 (0)