virtio-mem: Use -ETXTBSY as error code if the device is busy
authorDavid Hildenbrand <david@redhat.com>
Thu, 7 May 2020 14:01:38 +0000 (16:01 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 4 Jun 2020 19:36:52 +0000 (15:36 -0400)
commit8d4edcfe78c0008d95effc0c90455cee59e18d10
treeed7714cc69a982f7cc1a739ccbab929c01d9232c
parent562e08cd249f98af3a3e0845998f3b27b56b0067
virtio-mem: Use -ETXTBSY as error code if the device is busy

Let's be able to distinguish if the device or if memory is busy.

Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20200507140139.17083-15-david@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_mem.c