From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932770AbdJaSQp (ORCPT ); Tue, 31 Oct 2017 14:16:45 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:36055 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753067AbdJaSQn (ORCPT ); Tue, 31 Oct 2017 14:16:43 -0400 Subject: Re: [PATCH] scsi: sas: Convert timers to use timer_setup() To: Kees Cook , "Martin K. Petersen" References: <20171025100800.GA145125@beast> CC: "James E.J. Bottomley" , Jack Wang , "lindar_liu@usish.com" , Jens Axboe , Hannes Reinecke , "Johannes Thumshirn" , Benjamin Block , Baoyou Xie , "weiyongjun (A)" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Linuxarm From: John Garry Message-ID: <70f0b708-4b73-ee05-96c3-0b45bcba7dd3@huawei.com> Date: Tue, 31 Oct 2017 18:13:14 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20171025100800.GA145125@beast> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.238] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/10/2017 11:08, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. This requires adding a pointer to > hold the timer's target task, as there isn't a link back from slow_task. > > Cc: John Garry > Cc: "James E.J. Bottomley" > Cc: "Martin K. Petersen" > Cc: Jack Wang > Cc: lindar_liu@usish.com > Cc: Jens Axboe > Cc: Hannes Reinecke > Cc: Johannes Thumshirn > Cc: Benjamin Block > Cc: Baoyou Xie > Cc: Wei Yongjun > Cc: linux-scsi@vger.kernel.org > Signed-off-by: Kees Cook Acked-by: John Garry #for hisi_sas part Tested-by: John Garry # basic sanity test for hisi_sas (+ libsas) > --- > drivers/scsi/hisi_sas/hisi_sas.h | 1 - > drivers/scsi/hisi_sas/hisi_sas_main.c | 14 ++++++-------- > drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 6 +++--- > drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 24 +++++++++++------------- > drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 2 +- > drivers/scsi/libsas/sas_expander.c | 8 ++++---- > drivers/scsi/libsas/sas_init.c | 3 ++- > drivers/scsi/libsas/sas_scsi_host.c | 2 +- > drivers/scsi/mvsas/mv_init.c | 3 +-- > drivers/scsi/mvsas/mv_sas.c | 15 +++++++-------- > drivers/scsi/mvsas/mv_sas.h | 1 - > drivers/scsi/pm8001/pm8001_sas.c | 11 +++++------ > include/scsi/libsas.h | 1 + > 13 files changed, 42 insertions(+), 49 deletions(-)