The patch titled elv_iosched_store(): fix strstrip() misuse has been removed from the -mm tree. Its filename was elv_iosched_store-fix-strstrip-misuse.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: elv_iosched_store(): fix strstrip() misuse From: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> elv_iosched_store() ignore the return value of strstrip(). It makes small inconsistent behavior. This patch fixes it. <before> ==================================== # cd /sys/block/{blockdev}/queue case1: # echo "anticipatory" > scheduler # cat scheduler noop [anticipatory] deadline cfq case2: # echo "anticipatory " > scheduler # cat scheduler noop [anticipatory] deadline cfq case3: # echo " anticipatory" > scheduler bash: echo: write error: Invalid argument <after> ==================================== # cd /sys/block/{blockdev}/queue case1: # echo "anticipatory" > scheduler # cat scheduler noop [anticipatory] deadline cfq case2: # echo "anticipatory " > scheduler # cat scheduler noop [anticipatory] deadline cfq case3: # echo " anticipatory" > scheduler noop [anticipatory] deadline cfq Cc: Li Zefan <lizf@xxxxxxxxxxxxxx> Cc: Jens Axboe <jens.axboe@xxxxxxxxxx> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- diff -puN block/elevator.c~elv_iosched_store-fix-strstrip-misuse block/elevator.c --- a/block/elevator.c~elv_iosched_store-fix-strstrip-misuse +++ a/block/elevator.c @@ -1053,9 +1053,7 @@ ssize_t elv_iosched_store(struct request return count; strlcpy(elevator_name, name, sizeof(elevator_name)); - strstrip(elevator_name); - - e = elevator_get(elevator_name); + e = elevator_get(strstrip(elevator_name)); if (!e) { printk(KERN_ERR "elevator: type %s not found\n", elevator_name); return -EINVAL; _ Patches currently in -mm which might be from kosaki.motohiro@xxxxxxxxxxxxxx are linux-next.patch congestion_wait-dont-use-write.patch cgroup-fix-strstrip-misuse.patch strstrip-mark-as-as-must_check.patch revert-mm-oom-analysis-add-buffer-cache-information-to-show_free_areas.patch oom-dump-stack-and-vm-state-when-oom-killer-panics.patch munmap-dont-check-sysctl_max_mapcount.patch munmap-dont-check-sysctl_max_mapcount-fix.patch readahead-add-blk_run_backing_dev.patch mm-vsmcan-check-shrink_active_list-sc-isolate_pages-return-value.patch fs-symlink-write_begin-allocation-context-fix-reiser4-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html