From: Xiubo Li <xiubli@xxxxxxxxxx> V3: - fix the case that when the NBD_CFLAG_DESTROY_ON_DISCONNECT bit is not set. - add "nbd: rename the runtime flags as NBD_RT_ prefixed" V4: - Address the use after free bug from Mike's comments - This has been test for 3 days, works well. Xiubo Li (2): nbd: rename the runtime flags as NBD_RT_ prefixed nbd: fix possible page fault for nbd disk drivers/block/nbd.c | 108 +++++++++++++++++++++++++++++--------------- 1 file changed, 72 insertions(+), 36 deletions(-) -- 2.21.0