2019-05-19 13:08:55 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-10 08:55:44 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-05 22:46:27 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-09-20 14:33:27 +02:00
|
|
|
|
2015-05-22 17:13:32 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2012-03-23 15:01:50 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2011-09-16 02:31:11 -04:00
|
|
|
|
2006-08-29 19:06:09 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-03-25 16:38:23 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
block,lsm: add LSM blob and new LSM hooks for block devices
This patch introduces a new LSM blob to the block_device structure,
enabling the security subsystem to store security-sensitive data related
to block devices. Currently, for a device mapper's mapped device containing
a dm-verity target, critical security information such as the roothash and
its signing state are not readily accessible. Specifically, while the
dm-verity volume creation process passes the dm-verity roothash and its
signature from userspace to the kernel, the roothash is stored privately
within the dm-verity target, and its signature is discarded
post-verification. This makes it extremely hard for the security subsystem
to utilize these data.
With the addition of the LSM blob to the block_device structure, the
security subsystem can now retain and manage important security metadata
such as the roothash and the signing state of a dm-verity by storing them
inside the blob. Access decisions can then be based on these stored data.
The implementation follows the same approach used for security blobs in
other structures like struct file, struct inode, and struct superblock.
The initialization of the security blob occurs after the creation of the
struct block_device, performed by the security subsystem. Similarly, the
security blob is freed by the security subsystem before the struct
block_device is deallocated or freed.
This patch also introduces a new hook security_bdev_setintegrity() to save
block device's integrity data to the new LSM blob. For example, for
dm-verity, it can use this hook to expose its roothash and signing state
to LSMs, then LSMs can save these data into the LSM blob.
Please note that the new hook should be invoked every time the security
information is updated to keep these data current. For example, in
dm-verity, if the mapping table is reloaded and configured to use a
different dm-verity target with a new roothash and signing information,
the previously stored data in the LSM blob will become obsolete. It is
crucial to re-invoke the hook to refresh these data and ensure they are up
to date. This necessity arises from the design of device-mapper, where a
device-mapper device is first created, and then targets are subsequently
loaded into it. These targets can be modified multiple times during the
device's lifetime. Therefore, while the LSM blob is allocated during the
creation of the block device, its actual contents are not initialized at
this stage and can change substantially over time. This includes
alterations from data that the LSM 'trusts' to those it does not, making
it essential to handle these changes correctly. Failure to address this
dynamic aspect could potentially allow for bypassing LSM checks.
Signed-off-by: Deven Bowers <deven.desai@linux.microsoft.com>
Signed-off-by: Fan Wu <wufan@linux.microsoft.com>
[PM: merge fuzz, subject line tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
2024-08-02 23:08:25 -07:00
|
|
|
|
2020-11-24 09:34:00 +01:00
|
|
|
|
2016-12-24 11:46:01 -08:00
|
|
|
|
2022-08-26 23:58:45 -07:00
|
|
|
|
2021-09-07 16:13:03 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-11-01 18:43:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-28 19:09:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-06-26 13:58:32 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:47 +01:00
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-11-09 09:23:40 -07:00
|
|
|
|
2015-01-14 10:42:33 +01:00
|
|
|
|
2024-04-28 19:09:12 -04:00
|
|
|
|
2015-11-09 09:23:40 -07:00
|
|
|
|
|
|
|
|
|
2015-01-14 10:42:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-11-09 09:23:40 -07:00
|
|
|
|
2022-07-13 07:53:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-01-14 10:42:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-05-06 14:49:55 -07:00
|
|
|
|
2020-06-18 12:21:38 +08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-04-11 15:53:37 +01:00
|
|
|
|
2011-09-16 02:31:11 -04:00
|
|
|
|
2021-05-04 18:32:45 -07:00
|
|
|
|
2007-05-06 14:49:55 -07:00
|
|
|
|
2011-09-16 02:31:11 -04:00
|
|
|
|
2007-05-06 14:49:55 -07:00
|
|
|
|
2011-09-16 02:31:11 -04:00
|
|
|
|
2020-06-18 12:21:38 +08:00
|
|
|
|
2011-09-16 02:31:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-11 15:53:37 +01:00
|
|
|
|
2011-09-16 02:31:11 -04:00
|
|
|
|
2017-05-03 14:56:02 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-16 02:31:11 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-09-04 10:58:52 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-08 13:02:55 +02:00
|
|
|
|
2020-09-04 10:58:52 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-08 13:02:55 +02:00
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
2020-09-04 10:58:52 +02:00
|
|
|
|
2021-02-22 10:48:09 +01:00
|
|
|
|
2020-09-04 10:58:52 +02:00
|
|
|
|
2020-11-25 21:20:08 +01:00
|
|
|
|
2024-04-11 15:53:37 +01:00
|
|
|
|
2023-06-08 13:02:55 +02:00
|
|
|
|
2020-11-25 21:20:08 +01:00
|
|
|
|
2020-09-04 10:58:52 +02:00
|
|
|
|
2021-02-22 10:48:09 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-11 15:53:37 +01:00
|
|
|
|
2021-02-22 10:48:09 +01:00
|
|
|
|
|
|
|
|
|
2020-09-04 10:58:52 +02:00
|
|
|
|
|
|
|
|
|
2019-01-14 09:48:10 +01:00
|
|
|
|
|
|
|
|
|
2021-01-26 21:59:07 +02:00
|
|
|
|
2024-04-28 19:09:12 -04:00
|
|
|
|
2021-01-26 21:59:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-28 19:09:12 -04:00
|
|
|
|
2019-01-14 09:48:10 +01:00
|
|
|
|
|
|
|
|
|
2024-04-18 00:34:31 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-04-18 00:34:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-05-08 00:24:32 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-05-22 17:17:49 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2024-05-02 17:36:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-04-18 00:34:31 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-04-18 00:34:31 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-18 00:34:31 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-03-24 03:18:05 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-05-22 17:17:49 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-19 08:25:25 +02:00
|
|
|
|
2009-04-27 16:43:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-11 15:53:37 +01:00
|
|
|
|
2009-04-27 16:43:51 +02:00
|
|
|
|
2021-10-19 08:25:25 +02:00
|
|
|
|
2009-04-27 16:43:51 +02:00
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-19 08:25:25 +02:00
|
|
|
|
|
|
|
|
|
2024-04-11 15:53:37 +01:00
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-12 12:23:10 +09:00
|
|
|
|
|
|
|
|
|
2024-04-11 15:53:37 +01:00
|
|
|
|
2022-04-12 12:23:10 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
2023-10-24 15:01:08 +02:00
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-24 15:01:08 +02:00
|
|
|
|
|
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
2023-10-24 15:01:08 +02:00
|
|
|
|
|
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
2023-10-24 15:01:08 +02:00
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-24 11:54:06 +01:00
|
|
|
|
2023-09-27 15:21:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
2020-11-24 11:54:06 +01:00
|
|
|
|
2023-09-27 15:21:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
2020-11-24 11:54:06 +01:00
|
|
|
|
2023-09-27 15:21:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
2020-11-24 11:54:06 +01:00
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
2023-10-24 15:01:08 +02:00
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
|
|
|
|
|
2023-10-24 15:01:08 +02:00
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
|
|
|
|
|
2023-10-24 15:01:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
2023-10-24 15:01:08 +02:00
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
2023-09-27 15:21:16 +02:00
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
|
|
|
|
|
2023-09-27 15:21:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-23 10:34:56 -04:00
|
|
|
|
2009-08-03 23:28:35 +02:00
|
|
|
|
|
|
|
|
|
2023-09-27 15:21:16 +02:00
|
|
|
|
2010-03-23 10:34:56 -04:00
|
|
|
|
2009-08-03 23:28:35 +02:00
|
|
|
|
2023-09-27 15:21:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-08-03 23:28:35 +02:00
|
|
|
|
2016-10-04 10:53:40 +02:00
|
|
|
|
2023-09-27 15:21:16 +02:00
|
|
|
|
2010-03-23 10:34:56 -04:00
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
2016-10-04 10:53:40 +02:00
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
2023-10-24 15:01:08 +02:00
|
|
|
|
2009-02-25 10:44:19 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:46 +02:00
|
|
|
|
2023-10-11 19:55:00 +03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-22 14:41:03 -07:00
|
|
|
|
2021-01-07 19:36:40 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2021-01-07 19:36:40 +01:00
|
|
|
|
block,lsm: add LSM blob and new LSM hooks for block devices
This patch introduces a new LSM blob to the block_device structure,
enabling the security subsystem to store security-sensitive data related
to block devices. Currently, for a device mapper's mapped device containing
a dm-verity target, critical security information such as the roothash and
its signing state are not readily accessible. Specifically, while the
dm-verity volume creation process passes the dm-verity roothash and its
signature from userspace to the kernel, the roothash is stored privately
within the dm-verity target, and its signature is discarded
post-verification. This makes it extremely hard for the security subsystem
to utilize these data.
With the addition of the LSM blob to the block_device structure, the
security subsystem can now retain and manage important security metadata
such as the roothash and the signing state of a dm-verity by storing them
inside the blob. Access decisions can then be based on these stored data.
The implementation follows the same approach used for security blobs in
other structures like struct file, struct inode, and struct superblock.
The initialization of the security blob occurs after the creation of the
struct block_device, performed by the security subsystem. Similarly, the
security blob is freed by the security subsystem before the struct
block_device is deallocated or freed.
This patch also introduces a new hook security_bdev_setintegrity() to save
block device's integrity data to the new LSM blob. For example, for
dm-verity, it can use this hook to expose its roothash and signing state
to LSMs, then LSMs can save these data into the LSM blob.
Please note that the new hook should be invoked every time the security
information is updated to keep these data current. For example, in
dm-verity, if the mapping table is reloaded and configured to use a
different dm-verity target with a new roothash and signing information,
the previously stored data in the LSM blob will become obsolete. It is
crucial to re-invoke the hook to refresh these data and ensure they are up
to date. This necessity arises from the design of device-mapper, where a
device-mapper device is first created, and then targets are subsequently
loaded into it. These targets can be modified multiple times during the
device's lifetime. Therefore, while the LSM blob is allocated during the
creation of the block device, its actual contents are not initialized at
this stage and can change substantially over time. This includes
alterations from data that the LSM 'trusts' to those it does not, making
it essential to handle these changes correctly. Failure to address this
dynamic aspect could potentially allow for bypassing LSM checks.
Signed-off-by: Deven Bowers <deven.desai@linux.microsoft.com>
Signed-off-by: Fan Wu <wufan@linux.microsoft.com>
[PM: merge fuzz, subject line tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
2024-08-02 23:08:25 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-10 15:12:38 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-11-24 09:34:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-24 12:01:45 +01:00
|
|
|
|
block,lsm: add LSM blob and new LSM hooks for block devices
This patch introduces a new LSM blob to the block_device structure,
enabling the security subsystem to store security-sensitive data related
to block devices. Currently, for a device mapper's mapped device containing
a dm-verity target, critical security information such as the roothash and
its signing state are not readily accessible. Specifically, while the
dm-verity volume creation process passes the dm-verity roothash and its
signature from userspace to the kernel, the roothash is stored privately
within the dm-verity target, and its signature is discarded
post-verification. This makes it extremely hard for the security subsystem
to utilize these data.
With the addition of the LSM blob to the block_device structure, the
security subsystem can now retain and manage important security metadata
such as the roothash and the signing state of a dm-verity by storing them
inside the blob. Access decisions can then be based on these stored data.
The implementation follows the same approach used for security blobs in
other structures like struct file, struct inode, and struct superblock.
The initialization of the security blob occurs after the creation of the
struct block_device, performed by the security subsystem. Similarly, the
security blob is freed by the security subsystem before the struct
block_device is deallocated or freed.
This patch also introduces a new hook security_bdev_setintegrity() to save
block device's integrity data to the new LSM blob. For example, for
dm-verity, it can use this hook to expose its roothash and signing state
to LSMs, then LSMs can save these data into the LSM blob.
Please note that the new hook should be invoked every time the security
information is updated to keep these data current. For example, in
dm-verity, if the mapping table is reloaded and configured to use a
different dm-verity target with a new roothash and signing information,
the previously stored data in the LSM blob will become obsolete. It is
crucial to re-invoke the hook to refresh these data and ensure they are up
to date. This necessity arises from the design of device-mapper, where a
device-mapper device is first created, and then targets are subsequently
loaded into it. These targets can be modified multiple times during the
device's lifetime. Therefore, while the LSM blob is allocated during the
creation of the block device, its actual contents are not initialized at
this stage and can change substantially over time. This includes
alterations from data that the LSM 'trusts' to those it does not, making
it essential to handle these changes correctly. Failure to address this
dynamic aspect could potentially allow for bypassing LSM checks.
Signed-off-by: Deven Bowers <deven.desai@linux.microsoft.com>
Signed-off-by: Fan Wu <wufan@linux.microsoft.com>
[PM: merge fuzz, subject line tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
2024-08-02 23:08:25 -07:00
|
|
|
|
2020-11-24 09:34:00 +01:00
|
|
|
|
2021-08-16 14:26:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-22 09:53:54 +02:00
|
|
|
|
2021-08-16 14:26:14 +02:00
|
|
|
|
2021-08-16 14:26:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-10 15:12:38 -04:00
|
|
|
|
2011-01-07 17:49:49 +11:00
|
|
|
|
|
|
|
|
|
2020-11-23 15:41:40 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-11-23 15:41:40 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-05-16 22:10:57 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2010-06-07 14:34:48 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-04-03 14:47:49 -07:00
|
|
|
|
2010-06-07 14:34:48 -04:00
|
|
|
|
2012-05-03 14:48:02 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-02-12 00:55:41 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2019-04-10 15:12:38 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-06-07 14:34:48 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2019-03-25 16:38:23 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-03-25 16:38:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-03-25 16:38:23 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-11 19:55:00 +03:00
|
|
|
|
2024-06-14 09:03:43 +00:00
|
|
|
|
2015-05-22 17:13:33 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-12-01 14:34:56 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-03-24 03:16:06 -08:00
|
|
|
|
2024-02-24 13:46:46 +00:00
|
|
|
|
2007-07-20 10:11:58 +09:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-23 15:41:40 +01:00
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
2024-04-12 01:07:29 -04:00
|
|
|
|
2024-04-11 15:53:36 +01:00
|
|
|
|
2021-10-14 15:03:26 +01:00
|
|
|
|
2024-04-12 01:21:45 -04:00
|
|
|
|
|
|
|
|
|
2020-11-24 09:34:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-02 18:23:02 +09:00
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-04-24 22:13:18 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-28 19:09:12 -04:00
|
|
|
|
2023-04-24 22:13:18 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
|
|
|
|
|
2024-04-28 19:09:12 -04:00
|
|
|
|
2023-10-25 16:10:18 +02:00
|
|
|
|
2024-04-11 15:53:37 +01:00
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2024-04-28 19:09:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-04-28 19:01:39 -04:00
|
|
|
|
|
|
|
|
|
2024-04-28 19:09:12 -04:00
|
|
|
|
2024-04-28 19:01:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-28 19:09:12 -04:00
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-26 10:01:58 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-06-26 10:01:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-04-07 18:52:29 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
2010-04-07 18:52:29 +09:00
|
|
|
|
2011-03-30 22:57:33 -03:00
|
|
|
|
2010-04-07 18:52:29 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:45 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:46 +02:00
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:45 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:45 +02:00
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
2023-06-01 11:44:45 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-04-07 18:52:29 +09:00
|
|
|
|
|
|
|
|
|
2010-04-07 18:53:59 +09:00
|
|
|
|
2020-07-16 16:33:08 +02:00
|
|
|
|
2010-04-07 18:53:59 +09:00
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
2010-04-07 18:53:59 +09:00
|
|
|
|
2020-07-16 16:33:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-04-07 18:53:59 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
|
|
|
|
|
2010-04-07 18:53:59 +09:00
|
|
|
|
2020-11-25 21:20:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-04-07 18:53:59 +09:00
|
|
|
|
2023-06-01 11:44:46 +02:00
|
|
|
|
2010-04-07 18:53:59 +09:00
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
2023-06-01 11:44:46 +02:00
|
|
|
|
2010-04-07 18:53:59 +09:00
|
|
|
|
2020-07-16 16:33:08 +02:00
|
|
|
|
2010-04-07 18:53:59 +09:00
|
|
|
|
2010-08-04 17:59:39 +02:00
|
|
|
|
|
|
|
|
|
2024-08-26 16:30:58 +10:00
|
|
|
|
2010-04-07 18:53:59 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:46 +02:00
|
|
|
|
2010-04-07 18:53:59 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-16 16:33:08 +02:00
|
|
|
|
2023-06-01 11:44:46 +02:00
|
|
|
|
2010-04-07 18:53:59 +09:00
|
|
|
|
|
|
|
|
|
2020-07-16 16:33:09 +02:00
|
|
|
|
2010-04-07 18:53:59 +09:00
|
|
|
|
2019-07-30 13:10:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-08-26 16:30:58 +10:00
|
|
|
|
2019-07-30 13:10:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-21 09:50:54 -07:00
|
|
|
|
2019-07-30 13:10:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
|
|
|
|
|
2019-07-30 13:10:14 +02:00
|
|
|
|
2020-11-25 21:20:08 +01:00
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:46 +02:00
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
2019-07-30 13:10:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
2019-07-30 13:10:14 +02:00
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
|
|
|
|
|
2019-07-30 13:10:14 +02:00
|
|
|
|
2023-06-01 11:44:46 +02:00
|
|
|
|
2019-07-30 13:10:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-25 21:20:08 +01:00
|
|
|
|
2019-07-30 13:10:14 +02:00
|
|
|
|
2023-06-01 11:44:46 +02:00
|
|
|
|
2020-11-25 21:20:08 +01:00
|
|
|
|
2023-06-01 11:44:46 +02:00
|
|
|
|
2019-07-30 13:10:14 +02:00
|
|
|
|
|
|
|
|
|
2010-04-07 18:53:59 +09:00
|
|
|
|
2023-06-08 13:02:43 +02:00
|
|
|
|
2023-06-01 11:44:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:46 +02:00
|
|
|
|
2023-06-08 13:02:43 +02:00
|
|
|
|
2023-06-01 11:44:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
2023-06-01 11:44:44 +02:00
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
|
|
|
|
|
2024-04-12 01:18:24 -04:00
|
|
|
|
2023-06-01 11:44:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-01 11:44:46 +02:00
|
|
|
|
2023-06-01 11:44:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-12 01:18:24 -04:00
|
|
|
|
2023-06-01 11:44:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-25 08:12:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[PATCH] lockdep: simplify some aspects of bd_mutex nesting
When we open (actually blkdev_get) a partition we need to also open (get) the
whole device that holds the partition. The involves some limited recursion.
This patch tries to simplify some aspects of this.
As well as opening the whole device, we need to increment ->bd_part_count when
a partition is opened (this is used by rescan_partitions to avoid a rescan if
any partition is active, as that would be confusing).
The main change this patch makes is to move the inc/dec of bd_part_count into
blkdev_{get,put} for the whole rather than doing it in blkdev_{get,put} for
the partition.
More specifically, we introduce __blkdev_get and __blkdev_put which do exactly
what blkdev_{get,put} did, only with an extra "for_part" argument
(blkget_{get,put} then call the __ version with a '0' for the extra argument).
If for_part is 1, then the blkdev is being get(put) because a partition is
being opened(closed) for the first(last) time, and so bd_part_count should be
updated (on success). The particular advantage of pushing this function down
is that the bd_mutex lock (which is needed to update bd_part_count) is already
held at the lower level.
Note that this slightly changes the semantics of bd_part_count. Instead of
updating it whenever a partition is opened or released, it is now only updated
on the first open or last release. This is an adequate semantic as it is only
ever tested for "== 0".
Having introduced these functions we remove the current bd_part_count updates
from do_open (which is really the body of blkdev_get) and call
__blkdev_get(... 1). Similarly in blkget_put we remove the old bd_part_count
updates and call __blkget_put(..., 1). This call is moved to the end of
__blkdev_put to avoid nested locks of bd_mutex.
Finally the mutex_lock on whole->bd_mutex in do_open can be removed. It was
only really needed to protect bd_part_count, and that is now managed (and
protected) within the recursive call.
The observation that bd_part_count is central to the locking issues, and the
modifications to create __blkdev_put are from Peter Zijlstra.
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-08 02:36:16 -08:00
|
|
|
|
2024-04-17 16:47:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-08 13:02:55 +02:00
|
|
|
|
2019-11-14 15:34:34 +01:00
|
|
|
|
2019-11-14 15:34:35 +01:00
|
|
|
|
2021-11-26 23:06:52 +00:00
|
|
|
|
2019-11-14 15:34:34 +01:00
|
|
|
|
2021-05-25 08:12:54 +02:00
|
|
|
|
2023-06-08 13:02:36 +02:00
|
|
|
|
2021-05-25 08:12:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-06-24 14:32:40 +02:00
|
|
|
|
2021-05-25 08:12:54 +02:00
|
|
|
|
|
|
|
|
|
2020-03-18 09:12:06 +01:00
|
|
|
|
2019-11-14 15:34:34 +01:00
|
|
|
|
2022-03-30 07:29:07 +02:00
|
|
|
|
2021-05-25 08:12:54 +02:00
|
|
|
|
2022-03-30 07:29:07 +02:00
|
|
|
|
2024-04-17 16:47:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-02-28 01:01:24 +08:00
|
|
|
|
2021-05-25 08:12:54 +02:00
|
|
|
|
2019-11-14 15:34:34 +01:00
|
|
|
|
2023-06-08 13:02:55 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-05-25 08:12:54 +02:00
|
|
|
|
|
|
|
|
|
2020-07-16 16:33:10 +02:00
|
|
|
|
2021-07-22 09:53:58 +02:00
|
|
|
|
2021-05-25 08:12:56 +02:00
|
|
|
|
2021-07-22 09:53:58 +02:00
|
|
|
|
2011-05-23 13:26:07 +02:00
|
|
|
|
2021-05-25 08:12:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-23 13:26:07 +02:00
|
|
|
|
2023-06-08 13:02:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-30 07:29:07 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-11-30 10:20:29 -08:00
|
|
|
|
2021-05-25 08:12:54 +02:00
|
|
|
|
2023-06-08 13:02:37 +02:00
|
|
|
|
2021-05-25 08:12:54 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-11-23 10:19:22 +01:00
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-08 13:02:37 +02:00
|
|
|
|
2021-05-25 08:12:58 +02:00
|
|
|
|
|
|
|
|
|
2017-03-23 01:36:53 +01:00
|
|
|
|
2023-06-08 13:02:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-08 13:02:37 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-22 09:53:58 +02:00
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2021-07-22 09:53:58 +02:00
|
|
|
|
2022-01-04 08:16:47 +01:00
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2021-07-22 09:53:58 +02:00
|
|
|
|
2022-01-04 08:16:47 +01:00
|
|
|
|
|
|
|
|
|
2022-02-25 19:14:40 +01:00
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2022-01-04 08:16:47 +01:00
|
|
|
|
|
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2021-07-22 09:53:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-22 09:53:58 +02:00
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2023-11-01 18:43:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-03-23 17:11:20 +01:00
|
|
|
|
2023-11-01 18:43:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-03-23 17:11:20 +01:00
|
|
|
|
2023-11-01 18:43:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-03-23 17:11:20 +01:00
|
|
|
|
2023-11-01 18:43:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-03-26 13:47:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:49 +01:00
|
|
|
|
2023-11-01 18:43:08 +01:00
|
|
|
|
2024-01-23 14:26:48 +01:00
|
|
|
|
|
|
|
|
|
2023-11-01 18:43:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-03-26 13:47:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:48 +01:00
|
|
|
|
2024-03-23 17:11:19 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-01 18:43:08 +01:00
|
|
|
|
|
|
|
|
|
2010-11-13 11:55:18 +01:00
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
|
|
|
|
|
2023-06-08 13:02:55 +02:00
|
|
|
|
2010-11-13 11:55:18 +01:00
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
2010-11-13 11:55:18 +01:00
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
|
|
|
|
|
2010-11-13 11:55:18 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
2010-11-13 11:55:18 +01:00
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-11-01 18:43:07 +01:00
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
2020-11-23 10:19:22 +01:00
|
|
|
|
block: make blkdev_get/put() handle exclusive access
Over time, block layer has accumulated a set of APIs dealing with bdev
open, close, claim and release.
* blkdev_get/put() are the primary open and close functions.
* bd_claim/release() deal with exclusive open.
* open/close_bdev_exclusive() are combination of open and claim and
the other way around, respectively.
* bd_link/unlink_disk_holder() to create and remove holder/slave
symlinks.
* open_by_devnum() wraps bdget() + blkdev_get().
The interface is a bit confusing and the decoupling of open and claim
makes it impossible to properly guarantee exclusive access as
in-kernel open + claim sequence can disturb the existing exclusive
open even before the block layer knows the current open if for another
exclusive access. Reorganize the interface such that,
* blkdev_get() is extended to include exclusive access management.
@holder argument is added and, if is @FMODE_EXCL specified, it will
gain exclusive access atomically w.r.t. other exclusive accesses.
* blkdev_put() is similarly extended. It now takes @mode argument and
if @FMODE_EXCL is set, it releases an exclusive access. Also, when
the last exclusive claim is released, the holder/slave symlinks are
removed automatically.
* bd_claim/release() and close_bdev_exclusive() are no longer
necessary and either made static or removed.
* bd_link_disk_holder() remains the same but bd_unlink_disk_holder()
is no longer necessary and removed.
* open_bdev_exclusive() becomes a simple wrapper around lookup_bdev()
and blkdev_get(). It also has an unexpected extra bdev_read_only()
test which probably should be moved into blkdev_get().
* open_by_devnum() is modified to take @holder argument and pass it to
blkdev_get().
Most of bdev open/close operations are unified into blkdev_get/put()
and most exclusive accesses are tested atomically at the open time (as
it should). This cleans up code and removes some, both valid and
invalid, but unnecessary all the same, corner cases.
open_bdev_exclusive() and open_by_devnum() can use further cleanup -
rename to blkdev_get_by_path() and blkdev_get_by_devt() and drop
special features. Well, let's leave them for another day.
Most conversions are straight-forward. drbd conversion is a bit more
involved as there was some reordering, but the logic should stay the
same.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Neil Brown <neilb@suse.de>
Acked-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Philipp Reisner <philipp.reisner@linbit.com>
Cc: Peter Osterlund <petero2@telia.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <joel.becker@oracle.com>
Cc: Alex Elder <aelder@sgi.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: dm-devel@redhat.com
Cc: drbd-dev@lists.linbit.com
Cc: Leo Chen <leochen@broadcom.com>
Cc: Scott Branden <sbranden@broadcom.com>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Steven Whitehouse <swhiteho@redhat.com>
Cc: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Cc: Joern Engel <joern@logfs.org>
Cc: reiserfs-devel@vger.kernel.org
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
2010-11-13 11:55:17 +01:00
|
|
|
|
2023-06-08 13:02:43 +02:00
|
|
|
|
2023-06-08 13:02:55 +02:00
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
2020-11-23 10:19:22 +01:00
|
|
|
|
2024-01-23 14:26:49 +01:00
|
|
|
|
2023-06-08 13:02:43 +02:00
|
|
|
|
2024-01-23 14:26:49 +01:00
|
|
|
|
|
|
|
|
|
2020-11-23 10:19:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-25 08:12:56 +02:00
|
|
|
|
2021-05-25 08:12:54 +02:00
|
|
|
|
2021-08-09 08:40:28 +02:00
|
|
|
|
2021-05-25 08:12:54 +02:00
|
|
|
|
2021-11-11 10:03:43 +08:00
|
|
|
|
|
|
|
|
|
2023-11-01 18:43:08 +01:00
|
|
|
|
|
|
|
|
|
2024-04-06 17:09:25 +08:00
|
|
|
|
2021-05-25 08:12:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2021-11-11 10:03:43 +08:00
|
|
|
|
2023-11-01 18:43:08 +01:00
|
|
|
|
2023-06-08 13:02:43 +02:00
|
|
|
|
2023-06-01 11:44:52 +02:00
|
|
|
|
2020-11-23 10:19:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-12 01:18:24 -04:00
|
|
|
|
|
|
|
|
|
2021-11-22 14:06:13 +01:00
|
|
|
|
2024-04-12 01:18:24 -04:00
|
|
|
|
2020-11-23 10:19:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-25 08:12:56 +02:00
|
|
|
|
2020-11-23 10:19:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
|
|
|
|
|
2024-03-28 13:27:24 +01:00
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
|
|
|
|
|
2024-03-23 17:11:19 +01:00
|
|
|
|
|
|
|
|
|
2024-04-11 15:53:37 +01:00
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
2024-01-23 14:26:49 +01:00
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
|
|
|
|
|
2021-11-11 10:03:43 +08:00
|
|
|
|
|
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2023-06-08 13:02:43 +02:00
|
|
|
|
2020-11-25 21:20:08 +01:00
|
|
|
|
2021-05-25 08:12:56 +02:00
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
[PATCH] lockdep: simplify some aspects of bd_mutex nesting
When we open (actually blkdev_get) a partition we need to also open (get) the
whole device that holds the partition. The involves some limited recursion.
This patch tries to simplify some aspects of this.
As well as opening the whole device, we need to increment ->bd_part_count when
a partition is opened (this is used by rescan_partitions to avoid a rescan if
any partition is active, as that would be confusing).
The main change this patch makes is to move the inc/dec of bd_part_count into
blkdev_{get,put} for the whole rather than doing it in blkdev_{get,put} for
the partition.
More specifically, we introduce __blkdev_get and __blkdev_put which do exactly
what blkdev_{get,put} did, only with an extra "for_part" argument
(blkget_{get,put} then call the __ version with a '0' for the extra argument).
If for_part is 1, then the blkdev is being get(put) because a partition is
being opened(closed) for the first(last) time, and so bd_part_count should be
updated (on success). The particular advantage of pushing this function down
is that the bd_mutex lock (which is needed to update bd_part_count) is already
held at the lower level.
Note that this slightly changes the semantics of bd_part_count. Instead of
updating it whenever a partition is opened or released, it is now only updated
on the first open or last release. This is an adequate semantic as it is only
ever tested for "== 0".
Having introduced these functions we remove the current bd_part_count updates
from do_open (which is really the body of blkdev_get) and call
__blkdev_get(... 1). Similarly in blkget_put we remove the old bd_part_count
updates and call __blkget_put(..., 1). This call is moved to the end of
__blkdev_put to avoid nested locks of bd_mutex.
Finally the mutex_lock on whole->bd_mutex in do_open can be removed. It was
only really needed to protect bd_part_count, and that is now managed (and
protected) within the recursive call.
The observation that bd_part_count is central to the locking issues, and the
modifications to create __blkdev_put are from Peter Zijlstra.
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-08 02:36:16 -08:00
|
|
|
|
2023-09-27 11:34:07 +02:00
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
|
|
|
|
|
2024-04-28 19:09:12 -04:00
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
|
|
|
|
|
2024-04-28 19:09:12 -04:00
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:49 +01:00
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:47 +01:00
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:47 +01:00
|
|
|
|
2024-02-08 18:47:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-03-26 13:47:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:47 +01:00
|
|
|
|
2006-12-08 02:36:13 -08:00
|
|
|
|
2024-01-23 14:26:47 +01:00
|
|
|
|
2024-01-23 14:26:49 +01:00
|
|
|
|
2006-12-08 02:36:13 -08:00
|
|
|
|
|
|
|
|
|
2024-01-23 14:26:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-24 14:48:27 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-30 07:29:07 +02:00
|
|
|
|
2020-03-24 14:48:27 -07:00
|
|
|
|
|
|
|
|
|
2021-05-25 08:12:56 +02:00
|
|
|
|
2024-01-23 14:26:49 +01:00
|
|
|
|
2023-11-01 18:43:08 +01:00
|
|
|
|
2024-01-23 14:26:49 +01:00
|
|
|
|
2024-03-26 13:47:22 +01:00
|
|
|
|
implement in-kernel gendisk events handling
Currently, media presence polling for removeable block devices is done
from userland. There are several issues with this.
* Polling is done by periodically opening the device. For SCSI
devices, the command sequence generated by such action involves a
few different commands including TEST_UNIT_READY. This behavior,
while perfectly legal, is different from Windows which only issues
single command, GET_EVENT_STATUS_NOTIFICATION. Unfortunately, some
ATAPI devices lock up after being periodically queried such command
sequences.
* There is no reliable and unintrusive way for a userland program to
tell whether the target device is safe for media presence polling.
For example, polling for media presence during an on-going burning
session can make it fail. The polling program can avoid this by
opening the device with O_EXCL but then it risks making a valid
exclusive user of the device fail w/ -EBUSY.
* Userland polling is unnecessarily heavy and in-kernel implementation
is lighter and better coordinated (workqueue, timer slack).
This patch implements framework for in-kernel disk event handling,
which includes media presence polling.
* bdops->check_events() is added, which supercedes ->media_changed().
It should check whether there's any pending event and return if so.
Currently, two events are defined - DISK_EVENT_MEDIA_CHANGE and
DISK_EVENT_EJECT_REQUEST. ->check_events() is guaranteed not to be
called parallelly.
* gendisk->events and ->async_events are added. These should be
initialized by block driver before passing the device to add_disk().
The former contains the mask of all supported events and the latter
the mask of all events which the device can report without polling.
/sys/block/*/events[_async] export these to userland.
* Kernel parameter block.events_dfl_poll_msecs controls the system
polling interval (default is 0 which means disable) and
/sys/block/*/events_poll_msecs control polling intervals for
individual devices (default is -1 meaning use system setting). Note
that if a device can report all supported events asynchronously and
its polling interval isn't explicitly set, the device won't be
polled regardless of the system polling interval.
* If a device is opened exclusively with write access, event checking
is automatically disabled until all write exclusive accesses are
released.
* There are event 'clearing' events. For example, both of currently
defined events are cleared after the device has been successfully
opened. This information is passed to ->check_events() callback
using @clearing argument as a hint.
* Event checking is always performed from system_nrt_wq and timer
slack is set to 25% for polling.
* Nothing changes for drivers which implement ->media_changed() but
not ->check_events(). Going forward, all drivers will be converted
to ->check_events() and ->media_change() will be dropped.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
2010-12-08 20:57:37 +01:00
|
|
|
|
2011-07-01 16:17:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-23 10:19:22 +01:00
|
|
|
|
2011-07-01 16:17:47 +02:00
|
|
|
|
2021-05-25 08:12:58 +02:00
|
|
|
|
2023-06-08 13:02:37 +02:00
|
|
|
|
2021-05-25 08:12:58 +02:00
|
|
|
|
2023-06-08 13:02:37 +02:00
|
|
|
|
2021-05-25 08:12:56 +02:00
|
|
|
|
|
|
|
|
|
2021-11-11 10:03:43 +08:00
|
|
|
|
2024-01-23 14:26:49 +01:00
|
|
|
|
2020-11-26 09:23:26 +01:00
|
|
|
|
2023-09-27 11:34:07 +02:00
|
|
|
|
|
|
|
|
|
2024-03-26 13:47:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-12-13 17:11:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-10-21 15:13:43 +08:00
|
|
|
|
2021-12-13 17:11:13 +00:00
|
|
|
|
2021-10-21 15:13:43 +08:00
|
|
|
|
2021-12-13 17:11:13 +00:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-11-23 13:38:40 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-08-02 01:04:36 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-08-02 01:04:36 -04:00
|
|
|
|
2020-11-23 13:38:40 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-08-02 01:04:36 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-11-23 13:38:40 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-03-17 22:26:21 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-11-23 13:38:40 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-06-09 15:34:02 -05:00
|
|
|
|
2020-11-23 13:38:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-02 01:04:36 -04:00
|
|
|
|
2020-11-23 13:38:40 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-08-01 05:00:11 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-08-11 12:08:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-11 12:08:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-11 12:08:24 +02:00
|
|
|
|
|
|
|
|
|
2006-08-29 19:06:11 +01:00
|
|
|
|
2023-08-11 12:08:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-18 17:29:24 +02:00
|
|
|
|
|
|
|
|
|
2023-08-11 12:08:25 +02:00
|
|
|
|
2023-10-18 17:29:24 +02:00
|
|
|
|
2006-08-29 19:06:11 +01:00
|
|
|
|
2007-05-06 14:49:54 -07:00
|
|
|
|
2006-08-29 19:06:11 +01:00
|
|
|
|
2023-08-11 12:08:24 +02:00
|
|
|
|
2023-10-17 20:48:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-11 12:08:24 +02:00
|
|
|
|
|
|
|
|
|
2012-07-03 16:45:31 +02:00
|
|
|
|
2021-10-19 08:25:30 +02:00
|
|
|
|
2012-07-03 16:45:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-03-04 12:37:22 -05:00
|
|
|
|
2012-07-03 16:45:31 +02:00
|
|
|
|
|
|
|
|
|
2016-12-01 09:18:28 +01:00
|
|
|
|
2012-07-03 16:45:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-03-04 12:37:22 -05:00
|
|
|
|
2012-07-03 16:45:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-03-04 12:37:22 -05:00
|
|
|
|
2012-07-03 16:45:31 +02:00
|
|
|
|
2015-03-04 12:37:22 -05:00
|
|
|
|
2012-07-03 16:45:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-12-01 09:18:28 +01:00
|
|
|
|
2012-07-03 16:45:31 +02:00
|
|
|
|
2021-05-25 08:12:56 +02:00
|
|
|
|
2022-03-30 07:29:07 +02:00
|
|
|
|
2021-10-19 08:25:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-25 08:12:56 +02:00
|
|
|
|
2012-07-03 16:45:31 +02:00
|
|
|
|
2015-03-04 12:37:22 -05:00
|
|
|
|
2012-07-03 16:45:31 +02:00
|
|
|
|
2015-03-04 12:37:22 -05:00
|
|
|
|
2012-07-03 16:45:31 +02:00
|
|
|
|
|
|
|
|
|
2022-08-26 23:58:45 -07:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:55 +00:00
|
|
|
|
2022-08-26 23:58:45 -07:00
|
|
|
|
for-6.11/block-20240710
-----BEGIN PGP SIGNATURE-----
iQJEBAABCAAuFiEEwPw5LcreJtl1+l5K99NY+ylx4KYFAmaOTd8QHGF4Ym9lQGtl
cm5lbC5kawAKCRD301j7KXHgppqIEACUr8Vv2FtezvT3OfVSlYWHHLXzkRhwEG5s
vdk0o7Ow6U54sMjfymbHTgLD0ZOJf3uJ6BI95FQuW41jPzDFVbx4Hy8QzqonMkw9
1D/YQ4zrVL2mOKBzATbKpoGJzMOzGeoXEueFZ1AYPAX7RrDtP4xPQNfrcfkdE2zF
LycJN70Vp6lrZZMuI9yb9ts1tf7TFzK0HJANxOAKTgSiPmBmxesjkJlhrdUrgkAU
qDVyjj7u/ssndBJAb9i6Bl95Do8s9t4DeJq5/6wgKqtf5hClMXzPVB8Wy084gr6E
rTRsCEhOug3qEZSqfAgAxnd3XFRNc/p2KMUe5YZ4mAqux4hpSmIQQDM/5X5K9vEv
f4MNqUGlqyqntZx+KPyFpf7kLHFYS1qK4ub0FojWJEY4GrbBPNjjncLJ9+ozR0c8
kNDaFjMNAjalBee1FxNNH8LdVcd28rrCkPxRLEfO/gvBMUmvJf4ZyKmSED0v5DhY
vZqKlBqG+wg0EXvdiWEHMDh9Y+q/2XBIkS6NN/Bhh61HNu+XzC838ts1X7lR+4o2
AM5Vapw+v0q6kFBMRP3IcJI/c0UcIU8EQU7axMyzWtvhog8kx8x01hIj1L4UyYYr
rUdWrkugBVXJbywFuH/QIJxWxS/z4JdSw5VjASJLIrXy+aANmmG9Wonv95eyhpUv
5iv+EdRSNA==
=wVi8
-----END PGP SIGNATURE-----
Merge tag 'for-6.11/block-20240710' of git://git.kernel.dk/linux
Pull block updates from Jens Axboe:
- NVMe updates via Keith:
- Device initialization memory leak fixes (Keith)
- More constants defined (Weiwen)
- Target debugfs support (Hannes)
- PCIe subsystem reset enhancements (Keith)
- Queue-depth multipath policy (Redhat and PureStorage)
- Implement get_unique_id (Christoph)
- Authentication error fixes (Gaosheng)
- MD updates via Song
- sync_action fix and refactoring (Yu Kuai)
- Various small fixes (Christoph Hellwig, Li Nan, and Ofir Gal, Yu
Kuai, Benjamin Marzinski, Christophe JAILLET, Yang Li)
- Fix loop detach/open race (Gulam)
- Fix lower control limit for blk-throttle (Yu)
- Add module descriptions to various drivers (Jeff)
- Add support for atomic writes for block devices, and statx reporting
for same. Includes SCSI and NVMe (John, Prasad, Alan)
- Add IO priority information to block trace points (Dongliang)
- Various zone improvements and tweaks (Damien)
- mq-deadline tag reservation improvements (Bart)
- Ignore direct reclaim swap writes in writeback throttling (Baokun)
- Block integrity improvements and fixes (Anuj)
- Add basic support for rust based block drivers. Has a dummy null_blk
variant for now (Andreas)
- Series converting driver settings to queue limits, and cleanups and
fixes related to that (Christoph)
- Cleanup for poking too deeply into the bvec internals, in preparation
for DMA mapping API changes (Christoph)
- Various minor tweaks and fixes (Jiapeng, John, Kanchan, Mikulas,
Ming, Zhu, Damien, Christophe, Chaitanya)
* tag 'for-6.11/block-20240710' of git://git.kernel.dk/linux: (206 commits)
floppy: add missing MODULE_DESCRIPTION() macro
loop: add missing MODULE_DESCRIPTION() macro
ublk_drv: add missing MODULE_DESCRIPTION() macro
xen/blkback: add missing MODULE_DESCRIPTION() macro
block/rnbd: Constify struct kobj_type
block: take offset into account in blk_bvec_map_sg again
block: fix get_max_segment_size() warning
loop: Don't bother validating blocksize
virtio_blk: Don't bother validating blocksize
null_blk: Don't bother validating blocksize
block: Validate logical block size in blk_validate_limits()
virtio_blk: Fix default logical block size fallback
nvmet-auth: fix nvmet_auth hash error handling
nvme: implement ->get_unique_id
block: pass a phys_addr_t to get_max_segment_size
block: add a bvec_phys helper
blk-lib: check for kill signal in ioctl BLKZEROOUT
block: limit the Write Zeroes to manually writing zeroes fallback
block: refacto blkdev_issue_zeroout
block: move read-only and supported checks into (__)blkdev_issue_zeroout
...
2024-07-15 14:20:22 -07:00
|
|
|
|
2024-06-20 12:53:55 +00:00
|
|
|
|
2022-08-26 23:58:45 -07:00
|
|
|
|
for-6.11/block-20240710
-----BEGIN PGP SIGNATURE-----
iQJEBAABCAAuFiEEwPw5LcreJtl1+l5K99NY+ylx4KYFAmaOTd8QHGF4Ym9lQGtl
cm5lbC5kawAKCRD301j7KXHgppqIEACUr8Vv2FtezvT3OfVSlYWHHLXzkRhwEG5s
vdk0o7Ow6U54sMjfymbHTgLD0ZOJf3uJ6BI95FQuW41jPzDFVbx4Hy8QzqonMkw9
1D/YQ4zrVL2mOKBzATbKpoGJzMOzGeoXEueFZ1AYPAX7RrDtP4xPQNfrcfkdE2zF
LycJN70Vp6lrZZMuI9yb9ts1tf7TFzK0HJANxOAKTgSiPmBmxesjkJlhrdUrgkAU
qDVyjj7u/ssndBJAb9i6Bl95Do8s9t4DeJq5/6wgKqtf5hClMXzPVB8Wy084gr6E
rTRsCEhOug3qEZSqfAgAxnd3XFRNc/p2KMUe5YZ4mAqux4hpSmIQQDM/5X5K9vEv
f4MNqUGlqyqntZx+KPyFpf7kLHFYS1qK4ub0FojWJEY4GrbBPNjjncLJ9+ozR0c8
kNDaFjMNAjalBee1FxNNH8LdVcd28rrCkPxRLEfO/gvBMUmvJf4ZyKmSED0v5DhY
vZqKlBqG+wg0EXvdiWEHMDh9Y+q/2XBIkS6NN/Bhh61HNu+XzC838ts1X7lR+4o2
AM5Vapw+v0q6kFBMRP3IcJI/c0UcIU8EQU7axMyzWtvhog8kx8x01hIj1L4UyYYr
rUdWrkugBVXJbywFuH/QIJxWxS/z4JdSw5VjASJLIrXy+aANmmG9Wonv95eyhpUv
5iv+EdRSNA==
=wVi8
-----END PGP SIGNATURE-----
Merge tag 'for-6.11/block-20240710' of git://git.kernel.dk/linux
Pull block updates from Jens Axboe:
- NVMe updates via Keith:
- Device initialization memory leak fixes (Keith)
- More constants defined (Weiwen)
- Target debugfs support (Hannes)
- PCIe subsystem reset enhancements (Keith)
- Queue-depth multipath policy (Redhat and PureStorage)
- Implement get_unique_id (Christoph)
- Authentication error fixes (Gaosheng)
- MD updates via Song
- sync_action fix and refactoring (Yu Kuai)
- Various small fixes (Christoph Hellwig, Li Nan, and Ofir Gal, Yu
Kuai, Benjamin Marzinski, Christophe JAILLET, Yang Li)
- Fix loop detach/open race (Gulam)
- Fix lower control limit for blk-throttle (Yu)
- Add module descriptions to various drivers (Jeff)
- Add support for atomic writes for block devices, and statx reporting
for same. Includes SCSI and NVMe (John, Prasad, Alan)
- Add IO priority information to block trace points (Dongliang)
- Various zone improvements and tweaks (Damien)
- mq-deadline tag reservation improvements (Bart)
- Ignore direct reclaim swap writes in writeback throttling (Baokun)
- Block integrity improvements and fixes (Anuj)
- Add basic support for rust based block drivers. Has a dummy null_blk
variant for now (Andreas)
- Series converting driver settings to queue limits, and cleanups and
fixes related to that (Christoph)
- Cleanup for poking too deeply into the bvec internals, in preparation
for DMA mapping API changes (Christoph)
- Various minor tweaks and fixes (Jiapeng, John, Kanchan, Mikulas,
Ming, Zhu, Damien, Christophe, Chaitanya)
* tag 'for-6.11/block-20240710' of git://git.kernel.dk/linux: (206 commits)
floppy: add missing MODULE_DESCRIPTION() macro
loop: add missing MODULE_DESCRIPTION() macro
ublk_drv: add missing MODULE_DESCRIPTION() macro
xen/blkback: add missing MODULE_DESCRIPTION() macro
block/rnbd: Constify struct kobj_type
block: take offset into account in blk_bvec_map_sg again
block: fix get_max_segment_size() warning
loop: Don't bother validating blocksize
virtio_blk: Don't bother validating blocksize
null_blk: Don't bother validating blocksize
block: Validate logical block size in blk_validate_limits()
virtio_blk: Fix default logical block size fallback
nvmet-auth: fix nvmet_auth hash error handling
nvme: implement ->get_unique_id
block: pass a phys_addr_t to get_max_segment_size
block: add a bvec_phys helper
blk-lib: check for kill signal in ioctl BLKZEROOUT
block: limit the Write Zeroes to manually writing zeroes fallback
block: refacto blkdev_issue_zeroout
block: move read-only and supported checks into (__)blkdev_issue_zeroout
...
2024-07-15 14:20:22 -07:00
|
|
|
|
2022-08-26 23:58:45 -07:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for-6.11/block-20240710
-----BEGIN PGP SIGNATURE-----
iQJEBAABCAAuFiEEwPw5LcreJtl1+l5K99NY+ylx4KYFAmaOTd8QHGF4Ym9lQGtl
cm5lbC5kawAKCRD301j7KXHgppqIEACUr8Vv2FtezvT3OfVSlYWHHLXzkRhwEG5s
vdk0o7Ow6U54sMjfymbHTgLD0ZOJf3uJ6BI95FQuW41jPzDFVbx4Hy8QzqonMkw9
1D/YQ4zrVL2mOKBzATbKpoGJzMOzGeoXEueFZ1AYPAX7RrDtP4xPQNfrcfkdE2zF
LycJN70Vp6lrZZMuI9yb9ts1tf7TFzK0HJANxOAKTgSiPmBmxesjkJlhrdUrgkAU
qDVyjj7u/ssndBJAb9i6Bl95Do8s9t4DeJq5/6wgKqtf5hClMXzPVB8Wy084gr6E
rTRsCEhOug3qEZSqfAgAxnd3XFRNc/p2KMUe5YZ4mAqux4hpSmIQQDM/5X5K9vEv
f4MNqUGlqyqntZx+KPyFpf7kLHFYS1qK4ub0FojWJEY4GrbBPNjjncLJ9+ozR0c8
kNDaFjMNAjalBee1FxNNH8LdVcd28rrCkPxRLEfO/gvBMUmvJf4ZyKmSED0v5DhY
vZqKlBqG+wg0EXvdiWEHMDh9Y+q/2XBIkS6NN/Bhh61HNu+XzC838ts1X7lR+4o2
AM5Vapw+v0q6kFBMRP3IcJI/c0UcIU8EQU7axMyzWtvhog8kx8x01hIj1L4UyYYr
rUdWrkugBVXJbywFuH/QIJxWxS/z4JdSw5VjASJLIrXy+aANmmG9Wonv95eyhpUv
5iv+EdRSNA==
=wVi8
-----END PGP SIGNATURE-----
Merge tag 'for-6.11/block-20240710' of git://git.kernel.dk/linux
Pull block updates from Jens Axboe:
- NVMe updates via Keith:
- Device initialization memory leak fixes (Keith)
- More constants defined (Weiwen)
- Target debugfs support (Hannes)
- PCIe subsystem reset enhancements (Keith)
- Queue-depth multipath policy (Redhat and PureStorage)
- Implement get_unique_id (Christoph)
- Authentication error fixes (Gaosheng)
- MD updates via Song
- sync_action fix and refactoring (Yu Kuai)
- Various small fixes (Christoph Hellwig, Li Nan, and Ofir Gal, Yu
Kuai, Benjamin Marzinski, Christophe JAILLET, Yang Li)
- Fix loop detach/open race (Gulam)
- Fix lower control limit for blk-throttle (Yu)
- Add module descriptions to various drivers (Jeff)
- Add support for atomic writes for block devices, and statx reporting
for same. Includes SCSI and NVMe (John, Prasad, Alan)
- Add IO priority information to block trace points (Dongliang)
- Various zone improvements and tweaks (Damien)
- mq-deadline tag reservation improvements (Bart)
- Ignore direct reclaim swap writes in writeback throttling (Baokun)
- Block integrity improvements and fixes (Anuj)
- Add basic support for rust based block drivers. Has a dummy null_blk
variant for now (Andreas)
- Series converting driver settings to queue limits, and cleanups and
fixes related to that (Christoph)
- Cleanup for poking too deeply into the bvec internals, in preparation
for DMA mapping API changes (Christoph)
- Various minor tweaks and fixes (Jiapeng, John, Kanchan, Mikulas,
Ming, Zhu, Damien, Christophe, Chaitanya)
* tag 'for-6.11/block-20240710' of git://git.kernel.dk/linux: (206 commits)
floppy: add missing MODULE_DESCRIPTION() macro
loop: add missing MODULE_DESCRIPTION() macro
ublk_drv: add missing MODULE_DESCRIPTION() macro
xen/blkback: add missing MODULE_DESCRIPTION() macro
block/rnbd: Constify struct kobj_type
block: take offset into account in blk_bvec_map_sg again
block: fix get_max_segment_size() warning
loop: Don't bother validating blocksize
virtio_blk: Don't bother validating blocksize
null_blk: Don't bother validating blocksize
block: Validate logical block size in blk_validate_limits()
virtio_blk: Fix default logical block size fallback
nvmet-auth: fix nvmet_auth hash error handling
nvme: implement ->get_unique_id
block: pass a phys_addr_t to get_max_segment_size
block: add a bvec_phys helper
blk-lib: check for kill signal in ioctl BLKZEROOUT
block: limit the Write Zeroes to manually writing zeroes fallback
block: refacto blkdev_issue_zeroout
block: move read-only and supported checks into (__)blkdev_issue_zeroout
...
2024-07-15 14:20:22 -07:00
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-26 23:58:45 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:53:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-26 23:58:45 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-01 18:43:08 +01:00
|
|
|
|
2024-04-11 15:53:43 +01:00
|
|
|
|
|
|
|
|
|
2024-04-28 19:09:12 -04:00
|
|
|
|
2024-04-11 15:53:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-28 19:09:12 -04:00
|
|
|
|
2024-04-11 15:53:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-01 18:43:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|