[PATCH OLK-6.6 0/2] scsi: Remove scsi device no_start_on_resume flag

Damien Le Moal (1): scsi: Remove scsi device no_start_on_resume flag Zheng Qixing (1): scsi: fix kabi broken for no_start_on_resume flag in struct scsi_device drivers/scsi/sd.c | 12 +++++------- include/scsi/scsi_device.h | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) -- 2.39.2

From: Damien Le Moal <dlemoal@kernel.org> stable inclusion from stable-v6.6.57 commit 9e6075e112ee38bd2ac2309b925b4b74759054d2 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB6YDK Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=... -------------------------------- [ Upstream commit c4367ac83805a2322268c9736cd8ef9124063424 ] The scsi device flag no_start_on_resume is not set by any scsi low level driver. Remove it. This reverts the changes introduced by commit 0a8589055936 ("ata,scsi: do not issue START STOP UNIT on resume"). Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Hannes Reinecke <hare@suse.de> Tested-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Stable-dep-of: 7a6bbc2829d4 ("scsi: sd: Do not repeat the starting disk message") Signed-off-by: Sasha Levin <sashal@kernel.org> Conflicts: drivers/scsi/sd.c [The conflict here is due to the introduction of commit 5899b8a1a5fe ("scsi: sd: try more retries of START_STOP when resuming scsi device").] Signed-off-by: Zheng Qixing <zhengqixing@huawei.com> --- drivers/scsi/sd.c | 12 +++++------- include/scsi/scsi_device.h | 1 - 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 6a0b8f899718..b3d27e579543 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -4006,7 +4006,7 @@ static int sd_resume(struct device *dev) static int sd_resume_common(struct device *dev, bool runtime) { struct scsi_disk *sdkp = dev_get_drvdata(dev); - int ret = 0; + int ret; int retries = SD_START_STOP_RETRY_COUNT; if (!sdkp) /* E.g.: runtime resume at the start of sd_probe() */ @@ -4017,13 +4017,11 @@ static int sd_resume_common(struct device *dev, bool runtime) return 0; } - if (!sdkp->device->no_start_on_resume) { - sd_printk(KERN_NOTICE, sdkp, "Starting disk\n"); + sd_printk(KERN_NOTICE, sdkp, "Starting disk\n"); retry: - ret = sd_start_stop_device(sdkp, 1); - if (ret && ret != -ENODEV && retries--) - goto retry; - } + ret = sd_start_stop_device(sdkp, 1); + if (ret && ret != -ENODEV && retries--) + goto retry; if (!ret) { sd_resume(dev); diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index 1c3601ad0615..d4dcb9bccf7c 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h @@ -217,7 +217,6 @@ struct scsi_device { unsigned use_192_bytes_for_3f:1; /* ask for 192 bytes from page 0x3f */ unsigned no_start_on_add:1; /* do not issue start on add */ unsigned allow_restart:1; /* issue START_UNIT in error handler */ - unsigned no_start_on_resume:1; /* Do not issue START_STOP_UNIT on resume */ unsigned start_stop_pwr_cond:1; /* Set power cond. in START_STOP_UNIT */ unsigned no_uld_attach:1; /* disable connecting to upper level drivers */ unsigned select_no_atn:1; -- 2.39.2

hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB6YDK -------------------------------- The scsi device flag no_start_on_resume was removed in commit 9e6075e112ee ("scsi: Remove scsi device no_start_on_resume flag"). Fix the kabi broken in struct scsi_device. Fixes: 9e6075e112ee ("scsi: Remove scsi device no_start_on_resume flag") Signed-off-by: Zheng Qixing <zhengqixing@huawei.com> --- include/scsi/scsi_device.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index d4dcb9bccf7c..fed8c6022362 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h @@ -217,6 +217,7 @@ struct scsi_device { unsigned use_192_bytes_for_3f:1; /* ask for 192 bytes from page 0x3f */ unsigned no_start_on_add:1; /* do not issue start on add */ unsigned allow_restart:1; /* issue START_UNIT in error handler */ + KABI_DEPRECATE(unsigned, no_start_on_resume:1) /* Do not issue START_STOP_UNIT on resume */ unsigned start_stop_pwr_cond:1; /* Set power cond. in START_STOP_UNIT */ unsigned no_uld_attach:1; /* disable connecting to upper level drivers */ unsigned select_no_atn:1; -- 2.39.2

反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/17868 邮件列表地址:https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/RLO... FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://gitee.com/openeuler/kernel/pulls/17868 Mailing list address: https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/RLO...
participants (2)
-
patchwork bot
-
Zheng Qixing