+ zram-report-failed-read-and-write-stats.patch added to -mm tree
Subsystems (2)
Subject: + zram-report-failed-read-and-write-stats.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 04 Feb 2014 14:19:15 -0800
The patch titled
Subject: zram: report failed read and write stats
has been added to the -mm tree. Its filename is
zram-report-failed-read-and-write-stats.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/zram-report-failed-read-and-write-stats.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/zram-report-failed-read-and-write-stats.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Sergey Senozhatsky <[email protected]>
Subject: zram: report failed read and write stats
zram accounted but did not report numbers of failed read and write queries. make these stats available as failed_reads and failed_writes attrs.
---
drivers/block/zram/zram_drv.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/block/zram/zram_drv.c renamed from drivers/block/zram/zram_drv.c~zram-report-failed-read-and-write-stats +4 -0
@@ -728,6 +728,8 @@ static DEVICE_ATTR(mem_used_total, S_IRUZRAM_ATTR_RO (num_reads);ZRAM_ATTR_RO (num_writes); +ZRAM_ATTR_RO (failed_reads); +ZRAM_ATTR_RO (failed_writes);ZRAM_ATTR_RO (invalid_io);ZRAM_ATTR_RO (notify_free);ZRAM_ATTR_RO (zero_pages);
@@ -739,6 +741,8 @@ static struct attribute *zram_disk_attrs &dev_attr_reset.attr, &dev_attr_num_reads.attr, &dev_attr_num_writes.attr, + &dev_attr_failed_reads.attr, + &dev_attr_failed_writes.attr, &dev_attr_invalid_io.attr, &dev_attr_notify_free.attr, &dev_attr_zero_pages.attr,
_
Patches currently in -mm which might be from [email protected] are
zram-drop-init_done-struct-zram-member.patch zram-do-not-pass-rw-argument-to-__zram_make_request.patch zram-remove-good-and-bad-compress-stats.patch zram-use-atomic64_t-for-all-zram-stats.patch zram-remove-zram-stats-code-duplication.patch zram-report-failed-read-and-write-stats.patch zram-drop-not-used-table-count-member.patch zram-move-zram-size-warning-to-documentation.patch