linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [bug report] block: Non-NCQ commands will never be executed while fio is continuously running
@ 2024-09-09 13:10 yangxingui
  2024-09-09 13:21 ` Damien Le Moal
  0 siblings, 1 reply; 12+ messages in thread
From: yangxingui @ 2024-09-09 13:10 UTC (permalink / raw)
  To: axboe, John Garry
  Cc: linux-block, linux-kernel, James.Bottomley, Martin K. Petersen,
	damien.lemoal

Hello axboe & John,

After the driver exposes all HW queues to the block layer, non-NCQ 
commands will never be executed while fio is continuously running, such 
as a smartctl command.

The cause of the problem is that other hctx used by the NCQ command is 
still active and can continue to issue NCQ commands to the sata disk.
And the pio command keeps retrying in its corresponding hctx because 
qc_defer() always returns true.

hctx0: ncq, pio, ncq
hctx1:ncq, ncq, ...
...
hctxn: ncq, ncq, ...

Is there any good solution for this?

Thanks.
Xingui

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

end of thread, other threads:[~2024-11-01  2:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-09 13:10 [bug report] block: Non-NCQ commands will never be executed while fio is continuously running yangxingui
2024-09-09 13:21 ` Damien Le Moal
2024-09-10  1:09   ` yangxingui
2024-09-10  4:45     ` Damien Le Moal
2024-09-10  6:34       ` yangxingui
2024-09-10 11:27         ` Niklas Cassel
2024-09-10 22:38           ` Damien Le Moal
2024-09-11  9:41             ` yangxingui
2024-09-19 12:26             ` Yu Kuai
2024-09-19 14:14               ` Damien Le Moal
2024-10-31 14:12                 ` Niklas Cassel
2024-11-01  2:17                   ` yangxingui

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