Message ID | 1564542946-26255-1-git-send-email-sunke32@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | nbd: replace kill_bdev() with __invalidate_device() again | expand |
On Wed, Jul 31, 2019 at 11:15:46AM +0800, SunKe wrote:
> CR: https://code.amazon.com/reviews/CR-7629288
Hi, this link isn't accessible for ordinary people, please remove it from the
patch.
OK, I will remove it. 在 2019/7/31 16:15, Johannes Thumshirn 写道: > On Wed, Jul 31, 2019 at 11:15:46AM +0800, SunKe wrote: >> CR: https://code.amazon.com/reviews/CR-7629288 > > Hi, this link isn't accessible for ordinary people, please remove it from the > patch. >
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 9bcde23..e21d2de 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -1231,7 +1231,7 @@ static void nbd_clear_sock_ioctl(struct nbd_device *nbd, struct block_device *bdev) { sock_shutdown(nbd); - kill_bdev(bdev); + __invalidate_device(bdev, true); nbd_bdev_reset(bdev); if (test_and_clear_bit(NBD_HAS_CONFIG_REF, &nbd->config->runtime_flags))