linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] fixup null q->dev checking in both block and scsi layer
@ 2019-09-11  6:32 Stanley Chu
  2019-09-11  6:32 ` [PATCH v1 1/2] block: bypass blk_set_runtime_active for uninitialized q->dev Stanley Chu
  2019-09-11  6:32 ` [PATCH v1 2/2] scsi: core: remove dummy q->dev check Stanley Chu
  0 siblings, 2 replies; 5+ messages in thread
From: Stanley Chu @ 2019-09-11  6:32 UTC (permalink / raw)
  To: linux-scsi, linux-block, martin.petersen, axboe, jejb, matthias.bgg
  Cc: linux-mediatek, linux-arm-kernel, kuohong.wang, peter.wang,
	chun-hung.wu, andy.teng, Stanley Chu

Some devices may skip blk_pm_runtime_init() and have null pointer
in its request_queue->dev. For example, SCSI devices of UFS Well-Known
LUNs.

Currently the null pointer is checked by the user of
blk_set_runtime_active(), i.e., scsi_dev_type_resume(). It is better to
check it by blk_set_runtime_active() itself instead of by its users.

Stanley Chu (2):
  block: bypass blk_set_runtime_active for uninitialized q->dev
  scsi: core: remove dummy q->dev check

 block/blk-pm.c         | 3 +++
 drivers/scsi/scsi_pm.c | 3 +--
 2 files changed, 4 insertions(+), 2 deletions(-)

-- 
2.18.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-09-12  8:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-11  6:32 [PATCH v1] fixup null q->dev checking in both block and scsi layer Stanley Chu
2019-09-11  6:32 ` [PATCH v1 1/2] block: bypass blk_set_runtime_active for uninitialized q->dev Stanley Chu
2019-09-11 22:13   ` Jens Axboe
2019-09-12  8:33     ` Stanley Chu
2019-09-11  6:32 ` [PATCH v1 2/2] scsi: core: remove dummy q->dev check Stanley Chu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).