@@ -893,7 +893,7 @@ static int virtio_mem_send_plug_request(struct virtio_mem *vm, uint64_t addr,
893
893
case VIRTIO_MEM_RESP_NACK :
894
894
return - EAGAIN ;
895
895
case VIRTIO_MEM_RESP_BUSY :
896
- return - EBUSY ;
896
+ return - ETXTBSY ;
897
897
case VIRTIO_MEM_RESP_ERROR :
898
898
return - EINVAL ;
899
899
default :
@@ -919,7 +919,7 @@ static int virtio_mem_send_unplug_request(struct virtio_mem *vm, uint64_t addr,
919
919
vm -> plugged_size -= size ;
920
920
return 0 ;
921
921
case VIRTIO_MEM_RESP_BUSY :
922
- return - EBUSY ;
922
+ return - ETXTBSY ;
923
923
case VIRTIO_MEM_RESP_ERROR :
924
924
return - EINVAL ;
925
925
default :
@@ -941,7 +941,7 @@ static int virtio_mem_send_unplug_all_request(struct virtio_mem *vm)
941
941
atomic_set (& vm -> config_changed , 1 );
942
942
return 0 ;
943
943
case VIRTIO_MEM_RESP_BUSY :
944
- return - EBUSY ;
944
+ return - ETXTBSY ;
945
945
default :
946
946
return - ENOMEM ;
947
947
}
@@ -1557,11 +1557,15 @@ static void virtio_mem_run_wq(struct work_struct *work)
1557
1557
* or we have too many offline memory blocks.
1558
1558
*/
1559
1559
break ;
1560
- case - EBUSY :
1560
+ case - ETXTBSY :
1561
1561
/*
1562
1562
* The hypervisor cannot process our request right now
1563
- * (e.g., out of memory, migrating) or we cannot free up
1564
- * any memory to unplug it (all plugged memory is busy).
1563
+ * (e.g., out of memory, migrating);
1564
+ */
1565
+ case - EBUSY :
1566
+ /*
1567
+ * We cannot free up any memory to unplug it (all plugged memory
1568
+ * is busy).
1565
1569
*/
1566
1570
case - ENOMEM :
1567
1571
/* Out of memory, try again later. */
0 commit comments