Skip to content

Commit 9fc7900

Browse files
hailan94axboe
authored andcommitted
block: convert nr_requests to unsigned int
This value represents the number of requests for elevator tags, or drivers tags if elevator is none. The max value for elevator tags is 2048, and in drivers at most 16 bits is used for tag. Signed-off-by: Yu Kuai <yukuai@fnnas.com> Reviewed-by: Nilay Shroff <nilay@linux.ibm.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent ee4784a commit 9fc7900

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/blkdev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ struct request_queue {
550550
/*
551551
* queue settings
552552
*/
553-
unsigned long nr_requests; /* Max # of requests */
553+
unsigned int nr_requests; /* Max # of requests */
554554

555555
#ifdef CONFIG_BLK_INLINE_ENCRYPTION
556556
struct blk_crypto_profile *crypto_profile;

0 commit comments

Comments
 (0)