Mikulas Patocka 02cde50b7e dm ioctl: optimize functions without variable params
Device-mapper ioctls receive and send data in a buffer supplied
by userspace.  The buffer has two parts.  The first part contains
a 'struct dm_ioctl' and has a fixed size.  The second part depends
on the ioctl and has a variable size.

This patch recognises the specific ioctls that do not use the variable
part of the buffer and skips allocating memory for it.

In particular, when a device is suspended and a resume ioctl is sent,
this now avoid memory allocation completely.

The variable "struct dm_ioctl tmp" is moved from the function
copy_params to its caller ctl_ioctl and renamed to param_kernel.
It is used directly when the ioctl function doesn't need any arguments.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2013-03-01 22:45:49 +00:00
..
2013-02-22 23:31:31 -05:00
2012-03-28 18:41:29 +01:00
2012-07-30 17:25:16 -07:00
2013-03-01 22:45:47 +00:00
2013-03-01 22:45:47 +00:00
2013-03-01 22:45:44 +00:00
2013-03-01 22:45:47 +00:00
2013-03-01 22:45:48 +00:00
2012-12-21 20:23:38 +00:00
2012-10-22 10:44:55 +11:00
2013-03-01 22:45:46 +00:00
2012-10-11 13:08:44 +11:00
2012-12-18 09:32:44 -08:00
2012-12-18 09:32:44 -08:00
2012-10-11 13:25:44 +11:00
2012-10-11 13:49:05 +11:00