mbox series

[V2,0/3] ublk: fail to start/recover/del device if interrupted by signal

Message ID 20230726144502.566785-1-ming.lei@redhat.com (mailing list archive)
Headers show
Series ublk: fail to start/recover/del device if interrupted by signal | expand

Message

Ming Lei July 26, 2023, 2:44 p.m. UTC
Hi

The 1st & 2nd patch fixes kernel oops if user interrupts the current
ublk task.

The 3rd patch returns -EINTR if user interrupts the device deletion.

V2:
	- add patch 2&3, as reported by Stefano

Ming Lei (3):
  ublk: fail to start device if queue setup is interrupted
  ublk: fail to recover device if queue setup is interrupted
  ublk: return -EINTR if breaking from waiting for existed users in
    DEL_DEV

 drivers/block/ublk_drv.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

Comments

Jens Axboe July 27, 2023, 1:17 p.m. UTC | #1
On Wed, 26 Jul 2023 22:44:59 +0800, Ming Lei wrote:
> The 1st & 2nd patch fixes kernel oops if user interrupts the current
> ublk task.
> 
> The 3rd patch returns -EINTR if user interrupts the device deletion.
> 
> V2:
> 	- add patch 2&3, as reported by Stefano
> 
> [...]

Applied, thanks!

[1/3] ublk: fail to start device if queue setup is interrupted
      commit: 53e7d08f6d6e214c40db1f51291bb2975c789dc2
[2/3] ublk: fail to recover device if queue setup is interrupted
      commit: 0c0cbd4ebc375ceebc75c89df04b74f215fab23a
[3/3] ublk: return -EINTR if breaking from waiting for existed users in DEL_DEV
      commit: 3e9dce80dbf91972aed972c743f539c396a34312

Best regards,