Re: [PATCH V4 1/1] block: reject I/O for same fd if block size changed

2021-01-05 Thread Christoph Hellwig
Looks good to me, thanks a lot! Reviewed-by: Christoph Hellwig

[PATCH V4 1/1] block: reject I/O for same fd if block size changed

2021-01-05 Thread Minwoo Im
This patch fixes I/O errors during BLKRRPART ioctl() behavior right after format operation that changed logical block size of the block device with a same file descriptor opened. This issue can be easily reproduced with a single format command in case of NVMe (logical block size 512B to 4096B).