Message ID | 20171220065644.21511-22-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
On Tue, 2017-12-19 at 22:56 -0800, Himanshu Madhani wrote: > @@ -1234,8 +1234,6 @@ void qlt_schedule_sess_for_deletion(struct fc_port *sess, > ql_dbg(ql_dbg_tgt, sess->vha, 0xe001, > "Scheduling sess %p for deletion\n", sess); > > - /* use cancel to push work element through before re-queue */ > - cancel_work_sync(&sess->del_work); > INIT_WORK(&sess->del_work, qla24xx_delete_sess_fn); > queue_work(sess->vha->hw->wq, &sess->del_work); Why had this cancel_work_sync() call been introduced in qlt_schedule_sess_for_deletion() and why do you think it is safe to remove this call? Both questions should have been answered in the patch description. Thanks, Bart.
> On Dec 20, 2017, at 10:56 AM, Bart Van Assche <bart.vanassche@wdc.com> wrote: > > On Tue, 2017-12-19 at 22:56 -0800, Himanshu Madhani wrote: >> @@ -1234,8 +1234,6 @@ void qlt_schedule_sess_for_deletion(struct fc_port *sess, >> ql_dbg(ql_dbg_tgt, sess->vha, 0xe001, >> "Scheduling sess %p for deletion\n", sess); >> >> - /* use cancel to push work element through before re-queue */ >> - cancel_work_sync(&sess->del_work); >> INIT_WORK(&sess->del_work, qla24xx_delete_sess_fn); >> queue_work(sess->vha->hw->wq, &sess->del_work); > > Why had this cancel_work_sync() call been introduced in > qlt_schedule_sess_for_deletion() and why do you think it is safe to remove > this call? Both questions should have been answered in the patch description. > > Thanks, > > Bart. I will drop this patch from current series and will update commit message with details as suggested and submit in next series. Thanks, - Himanshu
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 71be1a95ba86..002fe05dd344 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -1234,8 +1234,6 @@ void qlt_schedule_sess_for_deletion(struct fc_port *sess, ql_dbg(ql_dbg_tgt, sess->vha, 0xe001, "Scheduling sess %p for deletion\n", sess); - /* use cancel to push work element through before re-queue */ - cancel_work_sync(&sess->del_work); INIT_WORK(&sess->del_work, qla24xx_delete_sess_fn); queue_work(sess->vha->hw->wq, &sess->del_work); }