block: don't assume device has a request list backing in nr_requests store
authorJens Axboe <jens.axboe@oracle.com>
Fri, 11 Sep 2009 20:44:29 +0000 (22:44 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 14 Sep 2009 06:24:53 +0000 (08:24 +0200)
Stacked devices do not. For now, just error out with -EINVAL. Later
we could make the limit apply on stacked devices too, for throttling
reasons.

This fixes

5a54cd13353bb3b88887604e2c980aa01e314309

and should go into 2.6.31 stable as well.

Cc: stable@kernel.org
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-sysfs.c

Simple merge