how to enlarge value of max_sectors_kb

2018-01-12 Thread tang . junhui
From: Tang Junhui There is a machine with very little max_sectors_kb size: [root@ceph151 queue]# pwd /sys/block/sdd/queue [root@ceph151 queue]# cat max_hw_sectors_kb 256 [root@ceph151 queue]# cat max_sectors_kb 256 The performance is very low when I run big I/Os. I can not modify it directly

[PATCH] scsi_dh_alua: Add return value and check for alua_rtpg_queue() to avoid DM devices I/Os hang

2016-11-24 Thread tang . junhui
From: "tang.junhui" Activate_complete fn() must be called in alua_activate() if alua_rtpg_queue() failed, otherwise, it would cause I/Os hang in DM devices. So this patch add return value and check for alua_rtpg_queue(). Signed-off-by: tang.junhui --- drivers/scsi/device_handler/scsi_dh_alua.c

[PATCH] scsi_dh_alua: fix wrong scsi_device_put() in alua_rtpg_queue()

2016-10-28 Thread tang . junhui
From: "tang.junhui" scsi_device_put() is called when the conditions pg->rtpg_sdev!=NULL and queue_delayed_work() failure satisfied, actually it should be not to call because scsi_device_get() is not called previous in this scene. Signed-off-by: tang.junhui --- drivers/scsi/device_handler/scsi_

[PATCH] scsi_dh_alua: fix missing kref_put() in alua_rtpg_work()

2016-10-28 Thread tang . junhui
From: "tang.junhui" Reference count of pg leaks in alua_rtpg_work() since kref_put() is not called to decrease the reference count of pg when the condition pg->rtpg_sdev==NULL satisfied (actually it is easy to satisfy), it would cause memory of pg leakage. Signed-off-by: tang.junhui --- driver

[PATCH] scsi_dh_alua: fix meory leak in alua_rtpg()

2016-09-18 Thread tang . junhui
From: "tang.junhui" buff should be freed before returning with SCSI_DH_RETRY in alua_rtpg(). Signed-off-by: tang.junhui --- drivers/scsi/device_handler/scsi_dh_alua.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/s