Re: [PATCH 2/2] dmcache: Implement a flush message

2013-05-13 Thread Peter Rajnoha
On 11.05.2013 17:25, Mike Snitzer wrote:> On Fri, May 10 2013 at 1:51pm -0400, > Darrick J. Wong wrote: > ... >> afaict, there isn't anything in the initscripts that tears down dm devices >> prior to invoking reboot(), and the kernel drivers don't have reboot notifiers >> to flush things out eith

[PATCH] kobject: record and send PREV_SEQNUM with uevents

2017-10-16 Thread Peter Rajnoha
s based on that. We don't need to reevaluate and recheck all items, instead, we can concentrate only on items for which we really and actually need to reflect changed state in kernel while the userspace listener was not listening for uevents. Signed-off-by: Peter Rajnoha --- include/linux/k

Re: [PATCH] kobject: record and send PREV_SEQNUM with uevents

2017-10-16 Thread Peter Rajnoha
On 10/16/2017 03:55 PM, Greg KH wrote: > On Mon, Oct 16, 2017 at 02:35:44PM +0200, Peter Rajnoha wrote: >> Record last uevent seqnum that was used with kobject's uevent and send >> it with next uevent as PREV_SEQNUM= variable. >> >> This enhances the way we are abl

Re: [PATCH] kobject: record and send PREV_SEQNUM with uevents

2017-10-17 Thread Peter Rajnoha
On 10/16/2017 04:49 PM, Greg KH wrote: > On Mon, Oct 16, 2017 at 04:00:26PM +0200, Peter Rajnoha wrote: >> On 10/16/2017 03:55 PM, Greg KH wrote: >>> On Mon, Oct 16, 2017 at 02:35:44PM +0200, Peter Rajnoha wrote: >>>> Record last uevent seqnum that was used with kob

[PATCH] doc: update kernel version in sysfs-uevent ABI doc

2017-05-27 Thread Peter Rajnoha
We expect the changes described in ABI/testing/sysfs-uevent doc to appear in 4.13. Signed-off-by: Peter Rajnoha --- Documentation/ABI/testing/sysfs-uevent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/ABI/testing/sysfs-uevent b/Documentation/ABI/testing

Re: [PATCH] kobject: record and send PREV_SEQNUM with uevents

2017-10-18 Thread Peter Rajnoha
On 10/17/2017 03:26 PM, Greg KH wrote: > On Tue, Oct 17, 2017 at 12:04:41PM +0200, Peter Rajnoha wrote: >> On 10/16/2017 04:49 PM, Greg KH wrote: >>> On Mon, Oct 16, 2017 at 04:00:26PM +0200, Peter Rajnoha wrote: >>>> On 10/16/2017 03:55 PM, Greg KH wrote: >>&g

Re: [PATCH] kobject: record and send PREV_SEQNUM with uevents

2017-10-18 Thread Peter Rajnoha
On 10/18/2017 09:21 AM, Peter Rajnoha wrote: > On 10/17/2017 03:26 PM, Greg KH wrote: >> On Tue, Oct 17, 2017 at 12:04:41PM +0200, Peter Rajnoha wrote: >>> On 10/16/2017 04:49 PM, Greg KH wrote: >>>> On Mon, Oct 16, 2017 at 04:00:26PM +0200, Peter Rajnoha wrote: >

[PATCH 1/2] kobject: return error code if writing /sys/.../uevent fails

2018-12-05 Thread Peter Rajnoha
are able to react in userspace accordingly by not assuming and awaiting a uevent that is not delivered. Signed-off-by: Peter Rajnoha --- drivers/base/bus.c | 12 drivers/base/core.c | 8 +++- kernel/module.c | 6 -- 3 files changed, 19 insertions(+), 7 deletions

[PATCH 0/2] Fix return code and improve feature check for synthetic uevents

2018-12-05 Thread Peter Rajnoha
erspace to check that the extended synthetic uevent arguments are supported without relying on kernel version check only. Peter Rajnoha (2): kobject: return error code if writing /sys/.../uevent fails kobject: add kernel/uevent_features sysfs file drivers/base/bus.c | 12 dr

[PATCH 2/2] kobject: add kernel/uevent_features sysfs file

2018-12-05 Thread Peter Rajnoha
ynthetic uevent arguments. Userspace can easily check for the feature then. Signed-off-by: Peter Rajnoha --- kernel/ksysfs.c | 8 1 file changed, 8 insertions(+) diff --git a/kernel/ksysfs.c b/kernel/ksysfs.c index 46ba853656f6..d893d7442f61 100644 --- a/kernel/ksysfs.c +++ b/kernel/ksysfs.c

Re: [PATCH 0/2] Fix return code and improve feature check for synthetic uevents

2018-12-06 Thread Peter Rajnoha
Dňa 5. 12. 2018 o 17:30 Greg KH napísal(a): > On Wed, Dec 05, 2018 at 12:27:43PM +0100, Peter Rajnoha wrote: >> Two small patches to aid handling of synthetic uevents back in userspace: >> >> - Return error code back to userspace on /sys/.../uevent file write >>

[PATCH v2] kobject: add kernel/uevent_features sysfs file

2018-12-07 Thread Peter Rajnoha
ynthetic uevent arguments. Userspace can easily check for the feature then. Updates for v2: Add Documentation/ABI/testing/sysfs-kernel-uevent_features. Signed-off-by: Peter Rajnoha --- .../ABI/testing/sysfs-kernel-uevent_features | 12 kernel/ksysfs.c

Re: [PATCH v2] kobject: add kernel/uevent_features sysfs file

2018-12-07 Thread Peter Rajnoha
On 12/7/18 1:01 PM, Greg KH wrote: > On Fri, Dec 07, 2018 at 12:46:07PM +0100, Peter Rajnoha wrote: >> This patch adds /sys/kernel/uevent_features file which currently lists >> 'synthargs' string to denote that the kernel is able to recognize the >> extended synthe

Re: [PATCH v2] kobject: add kernel/uevent_features sysfs file

2019-01-02 Thread Peter Rajnoha
On 12/19/18 10:24 AM, Greg KH wrote: > On Fri, Dec 07, 2018 at 01:28:52PM +0100, Peter Rajnoha wrote: >> On 12/7/18 1:01 PM, Greg KH wrote: >>> On Fri, Dec 07, 2018 at 12:46:07PM +0100, Peter Rajnoha wrote: >>>> This patch adds /sys/kernel/uevent_features file which c

[PATCH] kobject: support passing in variables for synthetic uevents

2017-03-15 Thread Peter Rajnoha
tic uevent first. If "UUID" is not passed in, the generated synthetic uevent gains "SYNTH_UUID=0" environment variable automatically so it's possible to identify this situation in userspace when reading generated uevent and so we can still make a difference between genuine

[PATCH v2] kobject: support passing in variables for synthetic uevents

2017-04-10 Thread Peter Rajnoha
tic uevent first. If "UUID" is not passed in, the generated synthetic uevent gains "SYNTH_UUID=0" environment variable automatically so it's possible to identify this situation in userspace when reading generated uevent and so we can still make a difference between genuin

[RESEND PATCH v2] kobject: support passing in variables for synthetic uevents

2017-05-09 Thread Peter Rajnoha
uevent gains "SYNTH_UUID=0" environment variable automatically so it's possible to identify this situation in userspace when reading generated uevent and so we can still make a difference between genuine and synthetic uevents. Changes from v1: - Add Documentation/ABI/testing/sysfs