[PATCH] block/elevator: Avoid a NULL pointer dereference in kobject_uevent()

2018-08-31 Thread Xiao Yang
ister_queue+0xd8/0x130 [ 423.693327] [] del_gendisk+0x139/0x2a0 Signed-off-by: Xiao Yang --- block/elevator.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/block/elevator.c b/block/elevator.c index 6a06b5d..2c88076 100644 --- a/block/elevator.c +++ b/block/eleva

[PATCH blktests] Fix syntax error with bash v4.1.2(e.g RHEL6)

2017-12-20 Thread xiao yang
-v option is not supported by conditional expressions on bash v4.1.2, so we use -n instead of -v to fix this issue. Signed-off-by: xiao yang --- check| 12 ++-- common/fio | 2 +- common/rc| 2 +- tests/meta/group | 4 ++-- 4 files changed, 10 insertions

Re: [PATCH] generic/473: test return EBUSY from BLKRRPART for mounted whole-dev

2017-12-19 Thread Xiao Yang
On 2017/12/19 18:53, Johannes Thumshirn wrote: Xiao Yang writes: [root@RHEL6U9GA_Intel64 blktests]# make make -C src all make[1]: Entering directory `/root/blktests/src' cc -Wall -o sg/syzkaller1 -O2 sg/syzkaller1.c sg/syzkaller1.c: In function ‘segv_handler’: sg/syzkaller1.c:118: wa

Re: [PATCH] generic/473: test return EBUSY from BLKRRPART for mounted whole-dev

2017-12-19 Thread Xiao Yang
On 2017/12/05 2:29, Omar Sandoval wrote: On Mon, Dec 04, 2017 at 05:48:36PM +0800, Xiao Yang wrote: On 2017/12/04 17:25, Eryu Guan wrote: On Mon, Dec 04, 2017 at 05:15:17PM +0800, Xiao Yang wrote: On 2017/12/04 16:29, Eryu Guan wrote: On Wed, Nov 29, 2017 at 08:02:26PM +0800, Xiao Yang wrote

[PATCH blktests] block/013: Add test for BLKRRPART ioctl

2017-12-19 Thread xiao yang
If the entire block device is formatted with a filesystem and mounted, running "blockdev --rereadpt" should fail and return EBUSY instead of pass. Signed-off-by: xiao yang --- tests/block/013 | 62 + tests/block/013.out | 3 ++

Re: [PATCH] generic/473: test return EBUSY from BLKRRPART for mounted whole-dev

2017-12-04 Thread Xiao Yang
On 2017/12/04 17:25, Eryu Guan wrote: On Mon, Dec 04, 2017 at 05:15:17PM +0800, Xiao Yang wrote: On 2017/12/04 16:29, Eryu Guan wrote: On Wed, Nov 29, 2017 at 08:02:26PM +0800, Xiao Yang wrote: If the entire block device is formatted with a filesystem and mounted, running "blockdev --rer

Re: [PATCH] generic/473: test return EBUSY from BLKRRPART for mounted whole-dev

2017-12-04 Thread Xiao Yang
On 2017/12/04 16:29, Eryu Guan wrote: On Wed, Nov 29, 2017 at 08:02:26PM +0800, Xiao Yang wrote: If the entire block device is formatted with a filesystem and mounted, running "blockdev --rereadpt" should fail and return EBUSY instead of pass. Signed-off-by: Xiao Yang As we have