[PATCH 2/3] mtip32xx: assign driver tag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Assign driver tag for internal command, so that we
can avoid kernel oops[1] trigered in blk_mq_tag_to_rq().

[1] https://bugzilla.kernel.org/show_bug.cgi?id=195429

Reported-by: Jozef Mikovic <jmikovic@xxxxxxxxxx>
Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx>
---
 drivers/block/mtip32xx/mtip32xx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c
index f96ab717534c..8cfe5a6edb05 100644
--- a/drivers/block/mtip32xx/mtip32xx.c
+++ b/drivers/block/mtip32xx/mtip32xx.c
@@ -180,6 +180,8 @@ static struct mtip_cmd *mtip_get_int_command(struct driver_data *dd)
 	if (IS_ERR(rq))
 		return NULL;
 
+	WARN_ON(!blk_mq_get_driver_tag(rq, NULL, true));
+
 	return blk_mq_rq_to_pdu(rq);
 }
 
-- 
2.9.3




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux