Message ID | 20220215213310.7264-1-kch@nvidia.com (mailing list archive) |
---|---|
Headers | show |
Series | loop: cleanup and few improvements | expand |
On Tue, 15 Feb 2022 13:33:06 -0800, Chaitanya Kulkarni wrote: > This has few improvment and cleanups such as using sysfs_emit() for the > sysfs dev attributes and removing variables that are only used once and > a cleanup with fixing declaration. > > Below is the test log where 10 loop devices created, each device is > linked to it's own file in ./loopX, formatted with xfs and mounted on > /mnt/loopX. For each device it reads the offset, sizelimit, autoclear, > partscan, and dio attr from sysfs using cat command, then it runs fio > verify job on it. > root@dev loop-sysfs-emit (for-next) # grep err= 0000-cover-letter.patch > write-and-verify: (groupid=0, jobs=1): err= 0: pid=3802: Tue Feb 15 12:53:57 2022 > write-and-verify: (groupid=0, jobs=1): err= 0: pid=3824: Tue Feb 15 12:54:24 2022 > write-and-verify: (groupid=0, jobs=1): err= 0: pid=3836: Tue Feb 15 12:54:51 2022 > write-and-verify: (groupid=0, jobs=1): err= 0: pid=3849: Tue Feb 15 12:55:18 2022 > write-and-verify: (groupid=0, jobs=1): err= 0: pid=3879: Tue Feb 15 12:55:45 2022 > write-and-verify: (groupid=0, jobs=1): err= 0: pid=3907: Tue Feb 15 12:56:12 2022 > write-and-verify: (groupid=0, jobs=1): err= 0: pid=3959: Tue Feb 15 12:56:39 2022 > write-and-verify: (groupid=0, jobs=1): err= 0: pid=3980: Tue Feb 15 12:57:06 2022 > write-and-verify: (groupid=0, jobs=1): err= 0: pid=3998: Tue Feb 15 12:57:34 2022 > write-and-verify: (groupid=0, jobs=1): err= 0: pid=4018: Tue Feb 15 12:58:01 2022 > > [...] Applied, thanks! [1/4] loop: use sysfs_emit() in the sysfs xxx show() (no commit info) [2/4] loop: remove extra variable in lo_fallocate() (no commit info) [3/4] loop: remove extra variable in lo_req_flush (no commit info) [4/4] loop: allow user to set the queue depth (no commit info) Best regards,