Re: nbd: Oops because nbd doesn't prevent NBD_CLEAR_SOCK while sock_xmit()is working on a receive

From: Paul Clements
Date: Thu Mar 27 2008 - 23:17:52 EST


Mike Snitzer wrote:

With the nbd_sock_xmit_oops.patch applied this Oops no longer happens.
I think my original patch's use of EINVAL should be changed to EIO.
Any other comments on the fix are welcome.

No, EINVAL is fine, so the original patch looks good to me.

Paul, would you like an updated patch that you push upstream? Or
should I just submit the patch and Cc: you?

The original one is fine, go ahead and send it.

Thanks,
Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/