correct onstack wait_queue_head declaration
Subsystems (5)
cover correct onstack wait_queue_head declaration
Onstack wait_queue_head must be declared with DECLARE_WAIT_QUEUE_HEAD_ONSTACK. Otherwise it will make lockdep warn. So fix the wrong usage in this patchset.
BTW, I split it to 4 patches to send to different maintainer though it's due to the same issue. If you have no objection on this kind of fix, I can also send it in one patch for some simplification.
Yong Zhang (4):
dmaengine: correct onstack wait_queue_head declaration [SCSI] bfa: correct onstack wait_queue_head declaration V4L/DVB: gspca - sn9c20x: correct onstack wait_queue_head declaration
Staging: rt2860: correct onstack wait_queue_head declaration
drivers/dma/dmatest.c | 2 +- drivers/media/video/gspca/sn9c20x.c | 2 +- drivers/scsi/bfa/bfad_im.c | 4 ++-- drivers/staging/rt2860/rt_main_dev.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
PATCH 1/4 dmaengine: correct onstack wait_queue_head declaration
Use DECLARE_WAIT_QUEUE_HEAD_ONSTACK to make lockdep happy
--- drivers/dma/dmatest.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/dma/dmatest.c +1 -1
@@ -467,7 +467,7 @@ err_srcs:if (iterations >0 )while (!kthread_should_stop ()) { -DECLARE_WAIT_QUEUE_HEAD (wait_dmatest_exit); +DECLARE_WAIT_QUEUE_HEAD_ONSTACK (wait_dmatest_exit);interruptible_sleep_on (&wait_dmatest_exit); }
Signature · 1 line
1.6.3.3
PATCH 2/4 bfa: correct onstack wait_queue_head declaration
Use DECLARE_WAIT_QUEUE_HEAD_ONSTACK to make lockdep happy
--- drivers/scsi/bfa/bfad_im.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/bfa/bfad_im.c +2 -2
@@ -282,7 +282,7 @@ bfad_im_reset_lun_handler(struct scsi_cmnd *cmnd)struct bfa_tskim_s *tskim;struct bfad_itnim_s *itnim;struct bfa_itnim_s *bfa_itnim; -DECLARE_WAIT_QUEUE_HEAD (wq); +DECLARE_WAIT_QUEUE_HEAD_ONSTACK (wq);int rc =SUCCESS ;unsigned long flags;enum bfi_tskim_status task_status;
@@ -344,7 +344,7 @@ bfad_im_reset_bus_handler(struct scsi_cmnd *cmnd)struct bfad_itnim_s *itnim;unsigned long flags;u32 i, rc, err_cnt =0 ; -DECLARE_WAIT_QUEUE_HEAD (wq); +DECLARE_WAIT_QUEUE_HEAD_ONSTACK (wq);enum bfi_tskim_status task_status;spin_lock_irqsave (&bfad->bfad_lock, flags);
Signature · 1 line
1.6.3.3
PATCH 3/4 V4L/DVB: gspca - sn9c20x: correct onstack wait_queue_head declaration
Use DECLARE_WAIT_QUEUE_HEAD_ONSTACK to make lockdep happy
--- drivers/media/video/gspca/sn9c20x.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/video/gspca/sn9c20x.c +1 -1
@@ -1426,7 +1426,7 @@ static int input_kthread(void *data)struct gspca_dev *gspca_dev = (struct gspca_dev *)data;struct sd *sd = (struct sd *) gspca_dev; -DECLARE_WAIT_QUEUE_HEAD (wait); +DECLARE_WAIT_QUEUE_HEAD_ONSTACK (wait);set_freezable ();for (;;) {if (kthread_should_stop ())
Signature · 1 line
1.6.3.3
PATCH 4/4 Staging: rt2860: correct onstack wait_queue_head declaration
Use DECLARE_WAIT_QUEUE_HEAD_ONSTACK to make lockdep happy
--- drivers/staging/rt2860/rt_main_dev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/rt2860/rt_main_dev.c +1 -1
@@ -216,7 +216,7 @@ int rt28xx_close(struct net_device *dev)u32 i =0 ;#ifdef RTMP_MAC_USB -DECLARE_WAIT_QUEUE_HEAD (unlink_wakeup); +DECLARE_WAIT_QUEUE_HEAD_ONSTACK (unlink_wakeup);DECLARE_WAITQUEUE (wait, current);#endif /* RTMP_MAC_USB // */
Signature · 1 line
1.6.3.3
Dan Williams
AppliedRe: [PATCH 1/4] dmaengine: correct onstack wait_queue_head declaration
In reply to Yong ZhangQuoted 3 lines · Yong Zhang
Use
DECLARE_WAIT_QUEUE_HEAD_ONSTACKto make lockdep happySigned-off-by Yong Zhang <[email protected]>
Thanks, applied and pushed back out on async_tx.git#fixes.
Quoted 10 lines · Yong Zhang
Onstack
wait_queue_headmust be declared withDECLARE_WAIT_QUEUE_HEAD_ONSTACK. Otherwise it will make lockdep warn. So fix the wrong usage in this patchset.BTW, I split it to 4 patches to send to different maintainer though it's due to the same issue. If you have no objection on this kind of fix, I can also send it in one patch for some simplification.
Signed-off-by Yong Zhang <[email protected]>
--no-chain-reply-to
Quoted 5 lines · Peter Zijlstra
Quoted 4 lines · Yong Zhang
Onstack
wait_queue_headmust be declared withDECLARE_WAIT_QUEUE_HEAD_ONSTACK. Otherwise it will make lockdep warn. So fix the wrong usage in this patchset.
Quoted 8 lines
Quoted 6 lines
BTW, I split it to 4 patches to send to different maintainer though it's due to the same issue. If you have no objection on this kind of fix, I can also send it in one patch for some simplification.
Signed-off-by Yong Zhang <[email protected]>--no-chain-reply-to
Thanks for your reminder. :)
Regards,
Yong