linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] fix crash by reading /proc/diskstats
@ 2022-01-20 10:52 Daniel Wagner
  2022-01-20 10:52 ` [PATCH 1/2] block: remove commented out code from diskstats_show Daniel Wagner
  2022-01-20 10:52 ` [PATCH 2/2] block: hold queue lock while iterating in diskstats_show Daniel Wagner
  0 siblings, 2 replies; 17+ messages in thread
From: Daniel Wagner @ 2022-01-20 10:52 UTC (permalink / raw)
  To: linux-block; +Cc: linux-kernel, Jens Axboe, Hannes Reinecke, Daniel Wagner

During failover nvme-tcp tests in a HA setup a crash orccured. iostat
was running in the background while the test was executed.

I am not sure if the fix is correct. I am unsure if using
blk_queue_enter() is the right thing. But when starring at the code
snipped I saw in older version blk_queue_enter() was used but got
evenutally replaced by the rcu_read_lock() as far I understand at the
moment... So any tip here would be highly appreciated.

Daniel

Daniel Wagner (2):
  block: remove commented out code from diskstats_show
  block: hold queue lock while iterating in diskstats_show

 block/genhd.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

-- 
2.29.2


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

end of thread, other threads:[~2022-03-04 15:38 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-20 10:52 [PATCH 0/2] fix crash by reading /proc/diskstats Daniel Wagner
2022-01-20 10:52 ` [PATCH 1/2] block: remove commented out code from diskstats_show Daniel Wagner
2022-01-20 11:02   ` Hannes Reinecke
2022-03-04 15:38     ` Daniel Wagner
2022-01-20 10:52 ` [PATCH 2/2] block: hold queue lock while iterating in diskstats_show Daniel Wagner
2022-01-20 11:18   ` Hannes Reinecke
2022-01-20 12:41     ` Daniel Wagner
2022-01-20 12:56   ` Ming Lei
2022-01-20 13:19     ` Daniel Wagner
2022-01-20 13:51       ` Ming Lei
2022-01-20 14:01         ` Daniel Wagner
2022-01-20 14:06           ` Daniel Wagner
2022-01-20 14:21           ` Christoph Hellwig
2022-01-20 14:34             ` Daniel Wagner
2022-01-20 15:37           ` Ming Lei
2022-01-20 16:29             ` Daniel Wagner
2022-03-04 14:53               ` Daniel Wagner

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).