Skip to contentSkip to conversation

scsi-mq: Don't set QUEUE_FLAG_NONROT in scsi_mq_alloc_queue().

PATCH Applied majianpeng 2 participants 2 messages Nov 29, 2013 – Dec 23, 2013 SCSI

lore
Share & tools
lore

majianpeng

author
#0 lore raw

PATCH 3/6 scsi-mq: Don't set QUEUE_FLAG_NONROT in scsi_mq_alloc_queue().

This flag will be set in sd_revalidate_disk().So remove this operation.

---
 drivers/scsi/scsi-mq.c |    2 --
 1 file changed, 2 deletions(-)
drivers/scsi/scsi-mq.c +0 -2
index eccdbd5..933ba0f 100644
@@ -206,8 +206,6 @@ int scsi_mq_alloc_queue(struct Scsi_Host *sh, struct scsi_device *sdev)
 			}
 		}
 	}
-//FIXME: Check for !NONROT usage
-	queue_flag_set_unlocked(QUEUE_FLAG_NONROT, q);
 
 	printk("scsi_mq_alloc_queue() complete !! >>>>>>>>>>>>>>>>>>>>>>>>>>>\n");
 	return 0;
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 7 lines · majianpeng

This flag will be set in sd_revalidate_disk().So remove this operation.

---
 drivers/scsi/scsi-mq.c |    2 --
 1 file changed, 2 deletions(-)

Applied, + squashed into current target-pending/scsi-mq code.

Thanks Jianpeng!

--nab

Quoted 13 lines
drivers/scsi/scsi-mq.c +0 -2
index eccdbd5..933ba0f 100644
@@ -206,8 +206,6 @@ int scsi_mq_alloc_queue(struct Scsi_Host *sh, struct scsi_device *sdev)
 			}
 		}
 	}
-//FIXME: Check for !NONROT usage
-	queue_flag_set_unlocked(QUEUE_FLAG_NONROT, q);
 
 	printk("scsi_mq_alloc_queue() complete !! >>>>>>>>>>>>>>>>>>>>>>>>>>>\n");
 	return 0;