On 11/23/2011 07:51 AM, Chun Yan Liu wrote:

According to above code logic, if lock in an early place is not
accepted, then removing CLEAR_SOCK in nbd_init phase can also solve
problem. In fact, if cleanup work done well, I think that ioctl is not
needed. Any comments?

I think you're right. In addition, SET_BLKSIZE and SET_SIZE should not be sent unless SET_SOCK succeeds.

Paolo


Reply via email to